Repository navigation
105 lines (101 loc) · 4.3 KB
/
Copy pathpublish.yml
File metadata and controls
105 lines (101 loc) · 4.3 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# Publish new releases to Bazel Central Registry.
name: Publish to BCR
on:
# Run the publish workflow after a successful release
# Will be triggered from the release.yaml workflow
workflow_call:
inputs:
tag_name:
required: true
type: string
author_name:
description: Commit author name for the BCR entry (optional)
required: false
type: string
author_email:
description: Commit author email for the BCR entry (optional)
required: false
type: string
secrets:
publish_token:
required: true
# In case of problems, let release engineers retry by manually dispatching
# the workflow from the GitHub UI
workflow_dispatch:
inputs:
tag_name:
description: git tag being released
required: true
type: string
author_name:
description: Commit author name for the BCR entry (optional)
required: false
type: string
author_email:
description: Commit author email for the BCR entry (optional)
required: false
type: string
permissions: {}
jobs:
publish:
uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v1.7.0
with:
tag_name: ${{ inputs.tag_name }}
# NOTE: BCR requires PR authors to have signed the CLA. Bots, such as
# github-actions[bot] (used by automation or when `gh workflow run` is
# called within a workflow), cannot sign the CLA.
author_name: ${{ inputs.author_name || github.actor }}
author_email: ${{ inputs.author_email || format('{0}+{1}@users.noreply.github.com', github.actor_id, github.actor) }}
module_roots: .
# GitHub repository which is a fork of the upstream where the Pull Request will be opened.
registry_fork: bazel-contrib/bazel-central-registry
attest: false
# Create non-draft PRs so the BCR bazel-io bot processes them. Otherwise,
# since a bazel-contrib bot, we have to wait for BCR maintainers to mark it
# non-draft or approve it.
draft: false
permissions:
contents: write
secrets:
# Necessary to push to the BCR fork, and to open a pull request against a registry
publish_token: ${{ secrets.publish_token || secrets.BCR_PUBLISH_TOKEN }}
publish_gazelle:
uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v1.7.0
with:
tag_name: ${{ inputs.tag_name }}
# See `publish` job above for why `author_name`/`author_email` are set.
author_name: ${{ inputs.author_name || github.actor }}
author_email: ${{ inputs.author_email || format('{0}+{1}@users.noreply.github.com', github.actor_id, github.actor) }}
module_roots: gazelle
# GitHub repository which is a fork of the upstream where the Pull Request will be opened.
registry_fork: bazel-contrib/bazel-central-registry
attest: false
# Create non-draft PRs so the BCR bazel-io bot processes them. Otherwise,
# since a bazel-contrib bot, we have to wait for BCR maintainers to mark it
# non-draft or approve it.
draft: false
permissions:
contents: write
secrets:
# Necessary to push to the BCR fork, and to open a pull request against a registry
publish_token: ${{ secrets.publish_token || secrets.BCR_PUBLISH_TOKEN }}
publish_sphinxdocs:
uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v1.7.0
with:
tag_name: ${{ inputs.tag_name }}
# See `publish` job above for why `author_name`/`author_email` are set.
author_name: ${{ inputs.author_name || github.actor }}
author_email: ${{ inputs.author_email || format('{0}+{1}@users.noreply.github.com', github.actor_id, github.actor) }}
module_roots: sphinxdocs
# GitHub repository which is a fork of the upstream where the Pull Request will be opened.
registry_fork: bazel-contrib/bazel-central-registry
attest: false
# Create non-draft PRs so the BCR bazel-io bot processes them. Otherwise,
# since a bazel-contrib bot, we have to wait for BCR maintainers to mark it
# non-draft or approve it.
draft: false
permissions:
contents: write
secrets:
# Necessary to push to the BCR fork, and to open a pull request against a registry
publish_token: ${{ secrets.publish_token || secrets.BCR_PUBLISH_TOKEN }}