...

Text file src/github.com/klauspost/compress/.github/workflows/release.yml

Documentation: github.com/klauspost/compress/.github/workflows

     1name: goreleaser
     2
     3on:
     4  push:
     5    tags:
     6      - 'v*'
     7
     8permissions:
     9  contents: write # for goreleaser/goreleaser-action to create a GitHub release
    10
    11jobs:
    12  goreleaser:
    13    runs-on: ubuntu-latest
    14    steps:
    15      -
    16        name: Checkout
    17        uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
    18        with:
    19          fetch-depth: 0
    20      -
    21        name: Set up Go
    22        uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
    23        with:
    24          go-version: 1.22.x
    25      -
    26        name: Run GoReleaser
    27        uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0
    28        with:
    29          version: 1.24.x
    30          args: release --rm-dist
    31        env:
    32          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    33          CGO_ENABLED: 0

View as plain text