Debian Codegraph @

.github/workflows/release_build.yml

raw symbols SCIP
1 name: build
2
3 on:
4 push:
5 tags:
6 - "*"
7
8 jobs:
9 build:
10 name: Release build
11 runs-on: ubuntu-latest
12 permissions:
13 packages: write
14 contents: write
15
16 steps:
17 - name: Set up Go 1.22
18 uses: actions/setup-go@v5
19 with:
20 go-version: ^1.22
21 id: go
22
23 - name: Check out code into the Go module directory
24 uses: actions/checkout@v6
25 with:
26 fetch-depth: 0 # See: https://goreleaser.com/ci/actions/
27
28 - name: Setup QEMU # Used for cross-compiling with goreleaser / docker
29 uses: docker/setup-qemu-action@v4
30
31 - name: Setup Docker Buildx # Used for cross-compiling with goreleaser / docker
32 uses: docker/setup-buildx-action@v4
33
34 - name: Login to Docker Hub
35 uses: docker/login-action@v4
36 with:
37 username: ${{ secrets.DOCKERHUB_USERNAME }}
38 password: ${{ secrets.DOCKERHUB_TOKEN }}
39
40 - name: Login to GitHub Container Registry
41 uses: docker/login-action@v4
42 with:
43 registry: ghcr.io
44 username: ${{ github.repository_owner }}
45 password: ${{ secrets.GITHUB_TOKEN }}
46
47 - name: Run GoReleaser
48 uses: goreleaser/goreleaser-action@v7
49 with:
50 version: latest
51 args: release --clean --config .github/goreleaser.yml
52 env:
53 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}