github.com/stealthrocket/wzprof@v0.2.1-0.20230830205924-5fa86be5e5b3/.github/workflows/release.yml (about)

     1  name: release
     2  
     3  on:
     4    push:
     5      # run only against tags
     6      tags:
     7        - 'v*'
     8  
     9  permissions:
    10    contents: write
    11    # packages: write
    12    # issues: write
    13  
    14  jobs:
    15    goreleaser:
    16      runs-on: ubuntu-latest
    17      steps:
    18        - uses: actions/checkout@v3
    19          with:
    20            fetch-depth: 0
    21  
    22        - uses: actions/setup-go@v4
    23          with:
    24            go-version-file: .go-version
    25        # More assembly might be required: Docker logins, GPG, etc. It all depends
    26        # on your needs.
    27        - uses: goreleaser/goreleaser-action@v4
    28          with:
    29            # either 'goreleaser' (default) or 'goreleaser-pro':
    30            distribution: goreleaser
    31            version: latest
    32            args: release --clean
    33          env:
    34            GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    35            # Your GoReleaser Pro key, if you are using the 'goreleaser-pro'
    36            # distribution:
    37            # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}