name: Release on: push: tags: - 'v*' permissions: contents: write jobs: release: # Releases are published by ermite (git.bnema.dev); the GitHub mirror # receives the tags but must not publish a second release. if: github.server_url != 'https://github.com' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: fetch-depth: 0 persist-credentials: false - uses: actions/setup-go@v5 with: go-version-file: go.mod - uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser version: "~> v2" args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}