Debian Codegraph @

.github/workflows/release.yml

raw symbols SCIP
1 ---
2 name: release
3
4 on:
5 push:
6 tags:
7 - "*"
8
9 permissions:
10 contents: write
11 packages: write
12
13 jobs:
14 goreleaser:
15 runs-on: ubuntu-latest
16 steps:
17 - name: Checkout
18 uses: actions/checkout@v4
19 with:
20 fetch-depth: 0
21 - name: Set up QEMU
22 uses: docker/setup-qemu-action@v3
23 - name: Set up Docker Buildx
24 uses: docker/setup-buildx-action@v3
25 - name: Set up Go
26 uses: actions/setup-go@v5
27 with:
28 go-version-file: go.mod
29 - name: Login to ghcr.io
30 uses: docker/login-action@v3
31 with:
32 registry: ghcr.io
33 username: ${{ github.actor }}
34 password: ${{ secrets.GITHUB_TOKEN }}
35 - name: Run GoReleaser
36 uses: goreleaser/goreleaser-action@v6
37 with:
38 distribution: goreleaser
39 version: "~> v2"
40 args: release --clean
41 env:
42 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}