You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
579 B

2 months ago
  1. name: Bazel Release
  2. on:
  3. release:
  4. types: [published]
  5. jobs:
  6. # A release archive is required for bzlmod
  7. # See: https://blog.bazel.build/2023/02/15/github-archive-checksum.html
  8. bazel-release-archive:
  9. runs-on: ubuntu-latest
  10. permissions:
  11. contents: write
  12. steps:
  13. - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
  14. - run: git archive $GITHUB_REF -o "yaml-cpp-${GITHUB_REF:10}.tar.gz"
  15. - run: gh release upload ${GITHUB_REF:10} "yaml-cpp-${GITHUB_REF:10}.tar.gz"
  16. env:
  17. GH_TOKEN: ${{ github.token }}