Bundling #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish Git Bundle Release | |
| on: | |
| push: | |
| tags-ignore: | |
| - '**' | |
| branches: | |
| - '**' | |
| jobs: | |
| github-release: | |
| runs-on: ubuntu-slim | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Create Git Bundle | |
| run: git bundle create repo.bundle --all | |
| - name: Create GitHub Release | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| continue-on-error: true | |
| run: >- | |
| gh release create | |
| "$(date +'%Y-%m-%d')" | |
| --repo '${{ github.repository }}' | |
| --notes "" --prerelease | |
| - name: Upload artifact signatures to GitHub Release | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| run: >- | |
| gh release upload | |
| "$(date +'%Y-%m-%d')" | |
| repo.bundle | |
| --repo '${{ github.repository }}' | |
| --clobber |