Skip to content

Commit 9d24c42

Browse files
authored
chore: enable immutable releases (#42)
1 parent 0aa64ee commit 9d24c42

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ on:
2121
type: string
2222
jobs:
2323
publish:
24-
uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v1.1.0
24+
uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v1.2.0
2525
with:
2626
tag_name: ${{ inputs.tag_name }}
2727
# GitHub repository which is a fork of the upstream where the Pull Request will be opened.

.github/workflows/release.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
with:
2525
release_files: diff.bzl-*.tar.gz
2626
prerelease: false
27+
draft: true
28+
attest: true
2729
tag_name: ${{ inputs.tag_name || github.ref_name }}
2830
publish:
2931
needs: release
@@ -32,3 +34,8 @@ jobs:
3234
tag_name: ${{ inputs.tag_name || github.ref_name }}
3335
secrets:
3436
publish_token: ${{ secrets.publish_token || secrets.BCR_PUBLISH_TOKEN }}
37+
finalize:
38+
# Publish the draft release
39+
uses: softprops/action-gh-release@v2
40+
with:
41+
tag_name: ${{ inputs.tag_name || github.ref_name }}

0 commit comments

Comments
 (0)