-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (44 loc) · 1.45 KB
/
Copy pathrelease.yml
File metadata and controls
52 lines (44 loc) · 1.45 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
# SPDX-FileCopyrightText: 2026 Kalle Fagerberg
#
# SPDX-License-Identifier: CC0-1.0
name: release
on:
push:
tags:
- "v*"
permissions: {}
jobs:
release:
runs-on: ubuntu-latest
permissions:
# Required to upload binaries to GitHub releases
contents: write
# Required for signing (sigstore)
attestations: write
# Required for using GitHub IdP (when signing)
id-token: write
steps:
- name: checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: setup go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # 6.4.0
with:
go-version-file: go.mod
cache: false # no cache to avoid cache-poisoning: https://docs.zizmor.sh/audits/#cache-poisoning
- uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1
with:
cache: false # no cache to avoid cache-poisoning: https://docs.zizmor.sh/audits/#cache-poisoning
- name: create package
run: |
mise run package
- name: attest release artifacts
uses: actions/attest-build-provenance@a2bbfa25375fe432b6a289bc6b6cd05ecd0c4c32 # v4.1.0
with:
subject-path: "dist/*.zip"
- name: upload assets to release
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release upload "$GITHUB_REF_NAME" -- dist/*.zip