File tree Expand file tree Collapse file tree 2 files changed +48
-3
lines changed Expand file tree Collapse file tree 2 files changed +48
-3
lines changed Original file line number Diff line number Diff line change
1
+ # Publish new releases to Bazel Central Registry.
2
+ name : Publish
3
+ on :
4
+ # Run the publish workflow after a successful release
5
+ # Will be triggered from the release.yaml workflow
6
+ workflow_call :
7
+ inputs :
8
+ tag_name :
9
+ required : true
10
+ type : string
11
+ secrets :
12
+ publish_token :
13
+ required : true
14
+ # In case of problems, let release engineers retry by manually dispatching
15
+ # the workflow from the GitHub UI
16
+ workflow_dispatch :
17
+ inputs :
18
+ tag_name :
19
+ required : true
20
+ type : string
21
+ jobs :
22
+ publish :
23
+ uses : bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v0.0.4
24
+ with :
25
+ tag_name : ${{ inputs.tag_name }}
26
+ # GitHub repository which is a fork of the upstream where the Pull Request will be opened.
27
+ registry_fork : aspect-build/bazel-central-registry
28
+ permissions :
29
+ attestations : write
30
+ contents : write
31
+ id-token : write
32
+ secrets :
33
+ # Necessary to push to the BCR fork, and to open a pull request against a registry
34
+ publish_token : ${{ secrets.BCR_PUBLISH_TOKEN }}
Original file line number Diff line number Diff line change 7
7
push :
8
8
tags :
9
9
- " v*.*.*"
10
-
10
+ permissions :
11
+ id-token : write
12
+ attestations : write
13
+ contents : write
11
14
jobs :
12
15
release :
13
- uses : bazel-contrib/.github/.github/workflows/release_ruleset.yaml@v6
16
+ uses : bazel-contrib/.github/.github/workflows/release_ruleset.yaml@v7.2.2
14
17
with :
15
- prerelease : false
16
18
release_files : rules_swc-*.tar.gz
19
+ prerelease : false
20
+ tag_name : ${{ github.ref_name }}
21
+ publish :
22
+ needs : release
23
+ uses : ./.github/workflows/publish.yaml
24
+ with :
25
+ tag_name : ${{ github.ref_name }}
26
+ secrets :
27
+ publish_token : ${{ secrets.BCR_PUBLISH_TOKEN }}
You can’t perform that action at this time.
0 commit comments