github.com/wI2L/jettison@v0.7.5-0.20230106001914-c70014c6417a/.github/workflows/release.yml (about)

     1  name: release
     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        - name: Checkout repository
    16          uses: actions/checkout@v2
    17          with:
    18            fetch-depth: 0
    19        - name: Set up Go
    20          uses: actions/setup-go@v2
    21          with:
    22            go-version: 1.17
    23        - name: Run GoReleaser
    24          uses: goreleaser/goreleaser-action@v2
    25          with:
    26            distribution: goreleaser
    27            version: latest
    28            args: release --rm-dist
    29          env:
    30            GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}