Skip to content

Commit 5eafdee

Browse files
committed
ci: missing release_prep file
1 parent 7053cf8 commit 5eafdee

File tree

3 files changed

+39
-2
lines changed

3 files changed

+39
-2
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ on:
2020
type: string
2121
jobs:
2222
publish:
23-
uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v0.2.2
23+
uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v1.0.0
2424
with:
2525
tag_name: ${{ inputs.tag_name }}
2626
# GitHub repository which is a fork of the upstream where the Pull Request will be opened.
2727
registry_fork: TendTo/bazel-central-registry
2828
draft: false
29+
tag_prefix: ""
2930
permissions:
3031
attestations: write
3132
contents: write

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ permissions:
1919
contents: write
2020
jobs:
2121
release:
22-
uses: bazel-contrib/.github/.github/workflows/[email protected].2
22+
uses: bazel-contrib/.github/.github/workflows/[email protected].3
2323
with:
2424
release_files: rules_doxygen-*.tar.gz
2525
prerelease: false

.github/workflows/release_prep.sh

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/usr/bin/env bash
2+
3+
set -o errexit -o nounset -o pipefail
4+
5+
# Argument provided by reusable workflow caller, see
6+
# https://github.com/bazel-contrib/.github/blob/d197a6427c5435ac22e56e33340dff912bc9334e/.github/workflows/release_ruleset.yaml#L72
7+
TAG=$1
8+
# The prefix is chosen to match what GitHub generates for source archives
9+
PREFIX="rules_doxygen-${TAG}"
10+
ARCHIVE="rules_doxygen-$TAG.tar.gz"
11+
git archive --format=tar --prefix="${PREFIX}/" "${TAG}" | gzip > "$ARCHIVE"
12+
SHA=$(shasum -a 256 "$ARCHIVE" | awk '{print $1}')
13+
14+
cat << EOF
15+
## Using Bzlmod with Bazel 7 or greater
16+
17+
\`\`\`starlark
18+
# MODULE.bazel
19+
20+
bazel_dep(name = "rules_doxygen", version = "${TAG}", dev_dependency = True)
21+
22+
doxygen_extension = use_extension("@rules_doxygen//:extensions.bzl", "doxygen_extension")
23+
24+
# Specify the desired version of Doxygen to use
25+
# ...
26+
27+
use_repo(doxygen_extension, "doxygen")
28+
\`\`\`
29+
30+
## Changelog
31+
32+
$(awk -v ver=$TAG '
33+
/^#+ \[/ { if (p) { exit }; if ($2 == "["ver"]") { p=1; next} } p && NF
34+
' CHANGELOG.md)
35+
36+
EOF

0 commit comments

Comments
 (0)