cloudflare/pint

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v0.65.2

Branches

Tags

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

Clone

HTTPS

Download ZIP

.github/workflows/compile.yml

73lines · 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
16permissions: read-all
17
18jobs:
19 build:
20 runs-on: ubuntu-latest
21 steps:
22 - name: Check out code
23 uses: actions/checkout@v4
24 with:
25 show-progress: false
26 fetch-depth: 0
27
28 - name: Set up Go
29 uses: actions/setup-go@v5
30 with:
31 go-version-file: go.ver
32
33 - name: Set up QEMU
34 uses: docker/setup-qemu-action@v3
35
36 - name: Docker Login
37 uses: docker/login-action@v3
38 with:
39 registry: ghcr.io
40 username: ${{ github.repository_owner }}
41 password: ${{ secrets.GITHUB_TOKEN }}
42
43 - name: Test releasing binaries
44 if: github.event_name == 'pull_request'
45 uses: goreleaser/goreleaser-action@v6
46 with:
47 args: release --clean --skip=validate --skip=sign --skip=sbom --skip=publish --snapshot
48
49 - name: Extract release changelog
50 if: startsWith(github.ref, 'refs/tags/')
51 id: changelog
52 uses: sean0x42/markdown-extract@v2
53 with:
54 file: docs/changelog.md
55 pattern: "${{ github.ref_name }}"
56 no-print-matched-heading: true
57
58 - name: Write changelog
59 if: startsWith(github.ref, 'refs/tags/')
60 run: |
61 mkdir .tmp
62 exec 3<<'HERE'
63 ${{ steps.changelog.outputs.markdown }}
64 HERE
65 cat /dev/fd/3 | tee .tmp/changelog.txt
66
67 - name: Release binaries
68 if: startsWith(github.ref, 'refs/tags/')
69 uses: goreleaser/goreleaser-action@v6
70 with:
71 args: release --clean --release-notes=.tmp/changelog.txt
72 env:
73 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
74