File tree Expand file tree Collapse file tree 3 files changed +39
-2
lines changed
Expand file tree Collapse file tree 3 files changed +39
-2
lines changed Original file line number Diff line number Diff line change 2020 type : string
2121jobs :
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
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ permissions:
1919 contents : write
2020jobs :
2121 release :
22- uses : bazel-contrib/.github/.github/workflows/release_ruleset.yaml@v7.2.2
22+ uses : bazel-contrib/.github/.github/workflows/release_ruleset.yaml@v7.2.3
2323 with :
2424 release_files : rules_doxygen-*.tar.gz
2525 prerelease : false
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments