-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (40 loc) · 1.04 KB
/
Copy pathrelease.yml
File metadata and controls
40 lines (40 loc) · 1.04 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
name: Release
on:
push:
tags:
# Rough semantic version regexp to only create releases
# on complete semantic versions e.g. v1.0.0, but not v1.
- v[0-9]+.[0-9]+.[0-9]+*
permissions:
contents: read
id-token: write
attestations: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: dagger/dagger-for-github@v8.1.0
with:
verb: develop
args: --debug
version: v0.18.19
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- uses: crazy-max/ghaction-upx@v3
with:
install-only: true
- uses: sigstore/cosign-installer@v3.10.0
- uses: anchore/sbom-action/download-syft@v0.20.6
- uses: goreleaser/goreleaser-action@v6
with:
args: release
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
- uses: actions/attest-build-provenance@v3
with:
subject-checksums: dist/checksums.txt
- uses: ./