Skip to content

Commit

Permalink
automatically create and upload bzlmod archive (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
zaucy authored Sep 12, 2023
1 parent 8b185c8 commit d705e50
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/bzlmod-archive.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Bzlmod Archive

on:
release:
types: [published]

jobs:
# A release archive is required for bzlmod
# See: https://blog.bazel.build/2023/02/15/github-archive-checksum.html
upload-archive:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- run: git archive -o "${{ format('{0}-{1}.tar.gz', github.event.repository.name, github.event.release.tag_name) }}" HEAD
- run: gh release upload ${{ github.event.release.tag_name }} *.tar.gz
env:
GH_TOKEN: ${{ github.token }}

0 comments on commit d705e50

Please sign in to comment.