-
Notifications
You must be signed in to change notification settings - Fork 565
44 lines (43 loc) · 1.45 KB
/
publish.yaml
File metadata and controls
44 lines (43 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# See https://github.com/bazel-contrib/publish-to-bcr
name: Publish to BCR
on:
# Allow the publish workflow to be called from another workflow.
# In this case, we trigger it from the release.yaml workflow.
workflow_call:
inputs:
release_version:
required: true
type: string
secrets:
BCR_PUBLISH_TOKEN:
required: true
# In case of problems, let release engineers retry by manually dispatching
# the workflow from the GitHub UI.
workflow_dispatch:
inputs:
release_version:
required: true
type: string
description: Release version to publish to the Bazel Central Registry
templates_ref:
default: ''
type: string
description: Override the ref to read .bcr templates from
jobs:
publish:
uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v1.1.0
with:
author_name: bazel-io
author_email: 5028808+bazel-io@users.noreply.github.com
attest: false
draft: false
tag_name: ${{ inputs.release_version }}
# Tags don't include a "v" prefix
tag_prefix: ""
# GitHub repository which is a fork of the upstream where the Pull Request will be opened.
registry_fork: bazel-io/bazel-central-registry
templates_ref: ${{ inputs.templates_ref || inputs.release_version }}
permissions:
contents: write
secrets:
publish_token: ${{ secrets.publish_token || secrets.BCR_PUBLISH_TOKEN }}