Skip to content

Commit

Permalink
create and publish .sha files for binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
puredanger committed Aug 14, 2023
1 parent f474bc5 commit 70a6fce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
git push --tags
git push
- name: Upload to github release
run: gh release create "$VERSION" -p -t "$VERSION" "target/clojure.rb" "target/clojure@$VERSION.rb" "target/clojure-tools-$VERSION.tar.gz" "target/linux-install.sh" "target/posix-install.sh" "target/clojure-tools.zip" "target/win-install.ps1"
run: gh release create "$VERSION" -p -t "$VERSION" "target/clojure.rb" "target/clojure@$VERSION.rb" "target/clojure-tools-$VERSION.tar.gz" "target/clojure-tools-$VERSION.tar.gz.sha" "target/linux-install.sh" "target/posix-install.sh" "target/clojure-tools.zip" "target/win-install.ps1" "target/clojure-tools.zip.sha"
env:
GH_TOKEN: ${{secrets.GH_TOKEN}}
- name: Publish versioned brew recipe to tap
Expand Down
2 changes: 2 additions & 0 deletions script/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ if [[ ! -z "$S3_BUCKET" ]]; then
# Write devel properties
version=$(cat VERSION)
sha=$(shasum -a 256 "target/clojure-tools-$version.tar.gz" | cut -c 1-64)
echo "$sha" > target/clojure-tools-$version.tar.gz.sha
echo "$version $sha" > devel.properties
git add devel.properties
git commit -m "update devel to $version"
Expand All @@ -24,6 +25,7 @@ if [[ ! -z "$S3_BUCKET" ]]; then
aws s3 cp --only-show-errors "target/posix-install.sh" "$S3_BUCKET/install/posix-install.sh"
aws s3 cp --only-show-errors "target/posix-install.sh" "$S3_BUCKET/install/posix-install-$version.sh"
echo "Deploying https://download.clojure.org/install/clojure-tools-$version.zip"
echo "$(shasum -a 256 "target/clojure-tools.zip" | cut -c 1-64)" > clojure-tools.zip.sha
aws s3 cp --only-show-errors "target/clojure-tools.zip" "$S3_BUCKET/install/clojure-tools.zip"
aws s3 cp --only-show-errors "target/clojure-tools.zip" "$S3_BUCKET/install/clojure-tools-$version.zip"
echo "Deploying https://download.clojure.org/install/win-install-$version.ps1"
Expand Down

0 comments on commit 70a6fce

Please sign in to comment.