github.com/moitias/moq@v0.0.0-20240223074357-5eb0f0ba4054/.github/workflows/release.yml (about)

     1  name: goreleaser
     2  
     3  on:
     4    push:
     5      tags:
     6        - 'v[0-9]*'
     7    workflow_dispatch:
     8  
     9  jobs:
    10    goreleaser:
    11      runs-on: ubuntu-latest
    12      steps:
    13        -
    14          name: Checkout
    15          uses: actions/checkout@v3
    16          with:
    17            fetch-depth: 0
    18  
    19        - run: git fetch --force --tags
    20  
    21        -
    22          name: Set up Go
    23          uses: actions/setup-go@v3
    24          with:
    25            go-version: 1.19
    26            cache: true
    27            check-latest: true
    28  
    29        -
    30          name: Run GoReleaser
    31          uses: goreleaser/goreleaser-action@v2
    32          with:
    33            distribution: goreleaser
    34            version: latest
    35            args: release --clean
    36          env:
    37            GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}