github.com/omnigres/cli@v0.1.4/.github/workflows/release.yml (about) 1 name: release 2 on: 3 push: 4 tags: 5 - 'v*' 6 7 jobs: 8 release: 9 name: release 10 runs-on: ubuntu-latest 11 steps: 12 - uses: actions/checkout@v4 13 with: 14 fetch-depth: 0 15 - uses: actions/setup-go@v5 16 with: 17 go-version-file: go.mod 18 check-latest: true 19 - uses: actions/cache@v4 20 with: 21 path: ~/go/pkg/mod 22 key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} 23 restore-keys: | 24 ${{ runner.os }}-go- 25 - name: GoReleaser 26 uses: goreleaser/goreleaser-action@v6 27 with: 28 distribution: goreleaser 29 version: latest 30 args: release --clean 31 env: 32 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}