diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d3687fe..70c6d4c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/script/publish.sh b/script/publish.sh index 04495bb..9a03859 100755 --- a/script/publish.sh +++ b/script/publish.sh @@ -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" @@ -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"