Debian Codegraph @

.github/workflows/release.yml

raw
1 name: Release
2
3 on:
4 push:
5 tags:
6 - "v*"
7
8 permissions:
9 contents: write
10 packages: write
11 id-token: write
12
13 jobs:
14 release:
15 runs-on: ubuntu-latest
16 steps:
17 # v6.0.2 (https://github.com/actions/checkout/releases/tag/v6.0.2)
18 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
19 with:
20 fetch-depth: 0
21
22 # v6.3.0 (https://github.com/actions/setup-go/releases/tag/v6.3.0)
23 - uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417
24 with:
25 go-version-file: go.mod
26
27 - name: Check Go version
28 run: go version
29
30 # v4.0.0 (https://github.com/docker/setup-qemu-action/releases/tag/v4.0.0)
31 - uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a
32
33 # v4.0.0 (https://github.com/docker/setup-buildx-action/releases/tag/v4.0.0)
34 - uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd
35
36 # v4.1.0 (https://github.com/docker/login-action/releases/tag/v4.1.0)
37 - name: Login to GHCR
38 uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121
39 with:
40 registry: ghcr.io
41 username: ${{ github.actor }}
42 password: ${{ secrets.GITHUB_TOKEN }}
43
44 # v4.1.2 (https://github.com/sigstore/cosign-installer/releases/tag/v4.1.2)
45 - uses: sigstore/cosign-installer@6f9f17788090df1f26f669e9d70d6ae9567deba6
46 with:
47 cosign-release: "v3.0.6"
48
49 - name: Check cosign version
50 run: cosign version
51
52 # v7.2.2 (https://github.com/goreleaser/goreleaser-action/releases/tag/v7.2.2)
53 - uses: goreleaser/goreleaser-action@5daf1e915a5f0af01ddbcd89a43b8061ff4f1a89
54 with:
55 version: "~> v2"
56 args: release --clean
57 env:
58 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59 HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}