github.com/icexin/eggos@v0.4.2-0.20220216025428-78b167e4f349/.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 }}