Skip to content

Commit

Permalink
Script: Add sha256 checksum file for each artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
jirutka committed Jul 23, 2017
1 parent 92e7c72 commit a00d132
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ build_script:
after_build:
- sh -c script/ci-artifact
artifacts:
- path: dist\*.zip
- path: dist\*.zip*
name: luapak
deploy:
provider: GitHub
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
deploy: &deploy-releases
provider: releases
api_key: $GH_TOKEN
file: dist/*.tar.gz
file: dist/*.tar.gz*
file_glob: true
skip_cleanup: true
on:
Expand Down
2 changes: 2 additions & 0 deletions script/ci-artifact
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ case "$target_os" in
windows)
7z a $file_name.zip luapak.exe
rm luapak.exe
sha256sum $file_name.zip > $file_name.zip.sha256
;;
*)
mkdir "$dir_name"
mv luapak "$dir_name"/
tar -czf "$file_name.tar.gz" "$dir_name"
rm -r "$dir_name"
sha256sum $file_name.tar.gz > $file_name.tar.gz.sha256
;;
esac

Expand Down

0 comments on commit a00d132

Please sign in to comment.