Release • main • 4548f60b67517c09838f7a49a9e13a65ede0a55b #14
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: Release | |
| run-name: Release • main • ${{ github.sha }} | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| issues: write | |
| concurrency: | |
| group: release-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| ci: | |
| name: Continuous Integration | |
| uses: ./.github/workflows/pr.yaml | |
| publish: | |
| name: Publish release | |
| needs: ci | |
| runs-on: ubuntu-slim | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up build environment | |
| uses: ./.github/actions/setup | |
| - name: Create GitHub release | |
| id: release | |
| uses: googleapis/release-please-action@v4 | |
| with: | |
| config-file: release-please-config.json | |
| - name: Fetch tags | |
| run: git fetch --force --tags | |
| - name: Checkout release tag | |
| if: ${{ steps.release.outputs.release_created }} | |
| run: git checkout ${{ steps.release.outputs.tag_name }} | |
| - name: Publish release artifacts | |
| if: ${{ steps.release.outputs.release_created }} | |
| uses: goreleaser/goreleaser-action@v6 | |
| with: | |
| version: latest | |
| args: release --clean | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GORELEASER_CURRENT_TAG: ${{ steps.release.outputs.tag_name }} |