cloudflare/pint

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v0.45.0

Branches

Tags

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

Clone

HTTPS

Download ZIP

.github/workflows/compile.yml

52lines · 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@v3
22 with:
23 fetch-depth: 0
24
25 - name: Set up Go
26 uses: actions/setup-go@v4
27 with:
28 go-version: 1.20.5
29 cache: true
30
31 - name: Set up QEMU
32 uses: docker/setup-qemu-action@v2
33
34 - name: Docker Login
35 uses: docker/login-action@v2
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@v4
43 with:
44 args: build --snapshot --clean --single-target
45
46 - name: Release binaries
47 if: startsWith(github.ref, 'refs/tags/')
48 uses: goreleaser/goreleaser-action@v4
49 with:
50 args: release --clean
51 env:
52 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53