fix(release): replace deprecated archives.format_overrides with formats #16
Workflow file for this run
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 | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| workflow_dispatch: | |
| inputs: | |
| tag: | |
| description: "Existing tag to re-release (e.g. v0.2.0). Leave blank for HEAD." | |
| required: false | |
| default: "" | |
| type: string | |
| snapshot: | |
| description: "Build a snapshot release (does not tag or publish)." | |
| required: false | |
| default: "false" | |
| type: boolean | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| ref: ${{ inputs.tag || github.ref }} | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: "1.25" | |
| - name: Validate GoReleaser config | |
| uses: goreleaser/goreleaser-action@v6.1.0 | |
| with: | |
| distribution: goreleaser | |
| version: v2.14.1 | |
| args: check | |
| - name: Run GoReleaser | |
| uses: goreleaser/goreleaser-action@v6.1.0 | |
| with: | |
| distribution: goreleaser | |
| version: v2.14.1 | |
| args: release --clean ${{ inputs.snapshot && '--snapshot' || '' }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: release-artifacts | |
| path: dist/ | |
| retention-days: 30 |