github.com/jspc/eggos@v0.5.1-0.20221028160421-556c75c878a5/.github/workflows/release.yaml (about)

     1  name: goreleaser
     2  
     3  on:
     4    push:
     5       tags:
     6        - 'v*'
     7  
     8  permissions:
     9    contents: write
    10  
    11  jobs:
    12    goreleaser:
    13      runs-on: ubuntu-latest
    14      steps:
    15        -
    16          name: Checkout
    17          uses: actions/checkout@v2
    18          with:
    19            fetch-depth: 0
    20        -
    21          name: Set up Go
    22          uses: actions/setup-go@v2
    23          with:
    24            go-version: 1.16
    25        -
    26          name: Run GoReleaser
    27          uses: goreleaser/goreleaser-action@v2
    28          with:
    29            # either 'goreleaser' (default) or 'goreleaser-pro'
    30            distribution: goreleaser
    31            version: latest
    32            args: release --rm-dist
    33          env:
    34            GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    35            # Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
    36            # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}