Skip to content

Commit

Permalink
release preparation (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyawk authored Apr 11, 2024
1 parent 81dbb45 commit d9ddbf6
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .bcr/source.template.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"integrity": "",
"strip_prefix": "{REPO}-{VERSION}",
"url": "https://github.com/{OWNER}/{REPO}/archive/refs/tags/{TAG}.tar.gz"
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-{TAG}.tar.gz"
}
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: Release

on:
push:
tags:
- "*.*.*"

jobs:
release:
uses: bazel-contrib/.github/.github/workflows/release_ruleset.yaml@v6
with:
release_files: rules_build_error-*.tar.gz
17 changes: 17 additions & 0 deletions .github/workflows/release_prep.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash

set -o errexit -o nounset -o pipefail

TAG="${GITHUB_REF_NAME}"

# StdOut of this script is used for release description
cat << EOF
## Using Bzlmod with Bazel 6 or greater
1. Enable Bzlmod with \`common --enable_bzlmod\`.
2. Add to your \`MODULE.bazel\` file:
\`\`\`starlark
bazel_dep(name = "rules_build_error", version = "${TAG}")
\`\`\`
EOF

0 comments on commit d9ddbf6

Please sign in to comment.