Skip to content

Commit ac7e98e

Browse files
authored
Fix release workflow (#3079)
This was a regression from #3070
1 parent 4e0d0ab commit ac7e98e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/release.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,14 @@ jobs:
144144
--exclude="examples" \
145145
.
146146
147+
# Save the sha256 checksum of the distro archive to the environment
148+
sha256_base64="$(shasum --algorithm 256 ${{ github.workspace }}/.github/rules_rust.tar.gz | awk '{ print $1 }' | xxd -r -p | base64)"
149+
echo "ARCHIVE_SHA256_BASE64=${sha256_base64}" >> $GITHUB_ENV
150+
env:
151+
CARGO_BAZEL_GENERATOR_URL: file://${{ github.workspace }}/crate_universe/target/artifacts/x86_64-unknown-linux-gnu/cargo-bazel
152+
ARTIFACTS_DIR: ${{ github.workspace }}/crate_universe/target/artifacts
153+
URL_PREFIX: https://github.com/${{ github.repository_owner }}/rules_rust/releases/download/${{ env.RELEASE_VERSION }}
154+
147155
# Upload the artifact in case creating a release fails so all artifacts can then be manually recovered.
148156
- uses: actions/upload-artifact@v3
149157
with:

0 commit comments

Comments
 (0)