Skip to content

Commit

Permalink
chore: release flow improvements
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Gammon <[email protected]>
  • Loading branch information
sgammon committed Jan 3, 2024
1 parent 846dc23 commit 3e8a6c1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/on.release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ permissions:
jobs:
release:
name: "Release: BCR"
uses: bazel-contrib/.github/.github/workflows/release_ruleset.yaml@v2
uses: elide-dev/bazel-contrib/.github/workflows/release_ruleset.yaml@master
with:
release_files: rules_graalvm-*.zip
prerelease: false
8 changes: 6 additions & 2 deletions .github/workflows/release_prep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@ set -o errexit -o nounset -o pipefail
# https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
TAG=${GITHUB_REF_NAME}
# The prefix is chosen to match what GitHub generates for source archives
PREFIX="rules_mylang-${TAG:1}"
ARCHIVE="rules_mylang-$TAG.tar.gz"
PREFIX="rules_graalvm-${TAG:1}"
ARCHIVE="rules_graalvm-$TAG.tar.gz"
git archive --format=tar --prefix=${PREFIX}/ ${TAG} | gzip > $ARCHIVE
SHA=$(shasum -a 256 $ARCHIVE | awk '{print $1}')

cat << EOF
## GraalVM Rules for Bazel
See the project repository for documentation.
## Using Bzlmod with Bazel 6+
1. Enable with \`common --enable_bzlmod\` in \`.bazelrc\`.
Expand Down

0 comments on commit 3e8a6c1

Please sign in to comment.