Skip to content

Commit 302c37a

Browse files
committed
chore: use correct bzlmod archive action
1 parent a1ffcc3 commit 302c37a

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

.github/workflows/bzlmod-archive.yml

+4-11
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
1-
name: Bzlmod Archive
1+
name: bzlmod archive
22

33
on:
44
release:
55
types: [published]
66

77
jobs:
8-
# A release archive is required for bzlmod
9-
# See: https://blog.bazel.build/2023/02/15/github-archive-checksum.html
10-
upload-archive:
11-
runs-on: ubuntu-latest
8+
bzlmod-archive:
9+
uses: ecsact-dev/bazel_registry/.github/workflows/bzlmod-archive.yml@main
10+
secrets: inherit
1211
permissions:
1312
contents: write
14-
steps:
15-
- uses: actions/checkout@v4
16-
- run: git archive -o "${{ format('{0}-{1}.tar.gz', github.event.repository.name, github.event.release.tag_name) }}" HEAD
17-
- run: gh release upload ${{ github.event.release.tag_name }} *.tar.gz
18-
env:
19-
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)