Skip to content

Commit 7efeca3

Browse files
authored
Merge pull request #494 from aherrmann/fix-release
chore: fix release automation
2 parents 63dcdd2 + 548eecb commit 7efeca3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release_prep.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ set -o errexit -o nounset -o pipefail
66
# https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
77
TAG=${GITHUB_REF_NAME}
88
VERSION=${TAG:1}
9+
# The prefix is chosen to match what GitHub generates for source archives
10+
PREFIX="rules_zig-$VERSION"
11+
ARCHIVE="$PREFIX.tar.gz"
12+
git archive --format=tar --prefix=${PREFIX}/ ${TAG} | gzip > $ARCHIVE
913

1014
cat << EOF
1115
## Setup Instructions
@@ -20,7 +24,7 @@ Optionally add the following to your \`MODULE.bazel\` file to install a specific
2024
2125
\`\`\`starlark
2226
zig = use_extension("//zig:extensions.bzl", "zig")
23-
zig.toolchain(zig_version = "0.13.0")
27+
zig.toolchain(zig_version = "0.14.1")
2428
\`\`\`
2529
2630
You can call \`zig.toolchain\` multiple times to install multiple Zig versions.

0 commit comments

Comments
 (0)