-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (34 loc) · 1.04 KB
/
publish-to-bcr.yml
File metadata and controls
36 lines (34 loc) · 1.04 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
name: Publish to Bazel Central Registry
on:
release:
types: [published]
workflow_dispatch:
inputs:
tag_name:
description: 'Release tag to publish (e.g., v1.4.0)'
required: true
type: string
test_mode:
description: 'Test mode: open PR to your fork instead of upstream BCR'
required: false
type: boolean
default: false
# TODO: DONT MERGE THIS
pull_request:
jobs:
publish-to-bcr:
uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v1.0.0
with:
# tag_name: ${{ github.event.release.tag_name || inputs.tag_name }}
# TODO: DONT MERGE THIS, for testing during PR only
tag_name: 'v2.0.0-alpha.4'
registry_fork: CodSpeedHQ/bazel-central-registry
# TODO: Change this back to bazel-central-registry when ready
registry: CodSpeedHQ/bazel-central-registry
attest: true
permissions:
contents: write
id-token: write
attestations: write
secrets:
publish_token: ${{ secrets.BCR_PUBLISH_TOKEN }}