-
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.2 KB
/
Copy pathrelease.yml
File metadata and controls
36 lines (34 loc) · 1.2 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: Release
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
jobs:
release:
uses: bazel-contrib/.github/.github/workflows/release_ruleset.yaml@1d798ff015ed0696433e01e2c3ccbb2abefadad7 # v7.7.0
permissions:
attestations: write
contents: write
id-token: write
with:
release_files: bashtest-*.tar.gz
# action-gh-release v3 stages standard releases as drafts until all assets
# are uploaded, then publishes once. Immutable releases cannot be promoted
# from prerelease after publication.
prerelease: false
# The upstream release workflow cannot restrict saves to main. Keep its
# separate release build from populating tag-scoped caches.
mount_bazel_caches: false
# Mirror the release to the Bazel Central Registry (replaces the retired
# publish-to-bcr GitHub App). See .github/workflows/publish.yaml.
publish:
needs: release
# Grant what publish.yaml's job requests; a called workflow cannot exceed
# the caller's permissions.
permissions:
contents: write
uses: ./.github/workflows/publish.yaml
with:
tag_name: ${{ github.ref_name }}
secrets:
BCR_PUBLISH_TOKEN: ${{ secrets.BCR_PUBLISH_TOKEN }}