github.com/gotranspile/cxgo@v0.3.7/.github/workflows/release.yml (about)

     1  name: goreleaser
     2  
     3  on:
     4    push:
     5      tags:
     6        - 'v*'
     7  
     8  jobs:
     9    goreleaser:
    10      runs-on: ubuntu-latest
    11      steps:
    12        - name: Install Go
    13          uses: actions/setup-go@v2
    14          with:
    15            go-version: '1.18.x'
    16        - name: Checkout
    17          uses: actions/checkout@v2
    18          with:
    19            fetch-depth: 0
    20        - name: Run GoReleaser
    21          uses: goreleaser/goreleaser-action@v2
    22          with:
    23            version: latest
    24            args: release --rm-dist
    25          env:
    26            GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}