cloudflare/pint

Public

mirrored from https://github.com/cloudflare/pintAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v0.49.0

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.github/workflows/compile.yml

54lines · modecode

1name: Compile
2
3on:
4 push:
5 branches:
6 - main
7 tags:
8 - "*"
9 pull_request:
10 branches:
11 - main
12 release:
13 types:
14 - published
15
16jobs:
17 build:
18 runs-on: ubuntu-latest
19 steps:
20 - name: Check out code
21 uses: actions/checkout@v4
22 with:
23 show-progress: false
24 fetch-depth: 0
25
26 - name: Set up Go
27 uses: actions/setup-go@v4
28 with:
29 go-version-file: go.mod
30
31 - name: Set up QEMU
32 uses: docker/setup-qemu-action@v3
33
34 - name: Docker Login
35 uses: docker/login-action@v3
36 with:
37 registry: ghcr.io
38 username: ${{ github.repository_owner }}
39 password: ${{ secrets.GITHUB_TOKEN }}
40
41 - name: Compile binaries
42 uses: goreleaser/goreleaser-action@v5
43 with:
44 version: v1.21.2
45 args: build --snapshot --clean --single-target
46
47 - name: Release binaries
48 if: startsWith(github.ref, 'refs/tags/')
49 uses: goreleaser/goreleaser-action@v5
50 with:
51 version: v1.21.2
52 args: release --clean
53 env:
54 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55