1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-09 23:34:23 +00:00

automatically create and upload bzlmod archive (#294)

This commit is contained in:
Ezekiel Warren 2023-09-12 05:19:27 -07:00 committed by GitHub
parent 8b185c82cf
commit d705e50884
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

19
.github/workflows/bzlmod-archive.yml vendored Normal file
View file

@ -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 }}