...

Text file src/github.com/gin-contrib/cors/.github/workflows/goreleaser.yml

Documentation: github.com/gin-contrib/cors/.github/workflows

     1name: Goreleaser
     2
     3on:
     4  push:
     5    tags:
     6      - "*"
     7
     8permissions:
     9  contents: write
    10
    11jobs:
    12  goreleaser:
    13    runs-on: ubuntu-latest
    14    steps:
    15      - name: Checkout repository
    16        uses: actions/checkout@v4
    17        with:
    18          fetch-depth: 0
    19
    20      - name: Setup go
    21        uses: actions/setup-go@v5
    22        with:
    23          go-version-file: go.mod
    24          check-latest: true
    25      - name: Run GoReleaser
    26        uses: goreleaser/goreleaser-action@v5
    27        with:
    28          # either 'goreleaser' (default) or 'goreleaser-pro'
    29          distribution: goreleaser
    30          version: latest
    31          args: release --clean
    32        env:
    33          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View as plain text