-
Notifications
You must be signed in to change notification settings - Fork 183
74 lines (65 loc) · 2.15 KB
/
release-please.yml
File metadata and controls
74 lines (65 loc) · 2.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
on:
push:
branches:
- main
name: release-please
jobs:
release-please:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-24.04
outputs:
release_created: "${{ steps.release-please.outputs.release_created }}"
release_tag: "${{ steps.release-please.outputs.tag_name }}"
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
# https://github.com/actions/checkout/issues/1467
fetch-depth: 0
persist-credentials: false
- uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4.4.0
id: release-please
with:
config-file: .release-please.json
manifest-file: .release-please-manifest.json
release-docker-image:
needs:
- release-please
if: needs.release-please.outputs.release_created
permissions:
contents: write
pull-requests: write
id-token: write
uses: ./.github/workflows/docker.yml
with:
tag: ${{ needs.release-please.outputs.release_tag }}
# If a release was created, also create the binaries and attach them
release-binaries:
runs-on: ubuntu-24.04
needs:
- release-please
if: needs.release-please.outputs.release_created
permissions:
contents: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
# https://github.com/actions/checkout/issues/1467
fetch-depth: 0
ref: "${{ needs.release-please.outputs.release_tag }}"
persist-credentials: false
- uses: ./.github/actions/setup-goversion
- name: Build binaries
run: make cross
- name: Attach binaries
uses: ncipollo/release-action@b7eabc95ff50cbeeedec83973935c8f306dfcd0b # v1.20.0
with:
token: ${{ github.token }}
allowUpdates: true
tag: ${{ needs.release-please.outputs.release_tag }}
omitNameDuringUpdate: true
omitPrereleaseDuringUpdate: true
omitBodyDuringUpdate: true
omitDraftDuringUpdate: true
artifacts: "dist/**/*"