Skip to content

Commit f361901

Browse files
committed
copy publish template from rules-template
1 parent dd49f29 commit f361901

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,34 @@
1-
# See https://github.com/bazel-contrib/publish-to-bcr
1+
# Publish new releases to Bazel Central Registry.
22
name: Publish to BCR
3-
43
on:
54
# Run the publish workflow after a successful release
6-
# Can be triggered from the release.yaml workflow
5+
# Will be triggered from the release.yaml workflow
76
workflow_call:
87
inputs:
98
tag_name:
109
required: true
1110
type: string
1211
secrets:
13-
BCR_PUBLISH_TOKEN:
12+
publish_token:
1413
required: true
1514
# In case of problems, let release engineers retry by manually dispatching
1615
# the workflow from the GitHub UI
1716
workflow_dispatch:
1817
inputs:
1918
tag_name:
19+
description: git tag being released
2020
required: true
2121
type: string
22-
2322
jobs:
2423
publish:
2524
uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v1.0.0
2625
with:
27-
draft: false
2826
tag_name: ${{ inputs.tag_name }}
2927
# GitHub repository which is a fork of the upstream where the Pull Request will be opened.
3028
registry_fork: bazel-contrib/bazel-central-registry
3129
attest: false
3230
permissions:
3331
contents: write
3432
secrets:
35-
publish_token: ${{ secrets.BCR_PUBLISH_TOKEN }}
33+
# Necessary to push to the BCR fork, and to open a pull request against a registry
34+
publish_token: ${{ secrets.publish_token || secrets.BCR_PUBLISH_TOKEN }}

0 commit comments

Comments
 (0)