-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Carlos Alexandro Becker <[email protected]>
- Loading branch information
Showing
1 changed file
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,12 +8,13 @@ name: release | |
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
- "v*" | ||
|
||
permissions: | ||
contents: write # needed to write releases | ||
id-token: write # needed for keyless signing | ||
packages: write # needed for ghcr access | ||
contents: write # needed to write releases | ||
id-token: write # needed for keyless signing | ||
packages: write # needed for ghcr access | ||
attestations: write # needed for provenance | ||
|
||
jobs: | ||
release: | ||
|
@@ -26,16 +27,19 @@ jobs: | |
with: | ||
go-version: 1.19 | ||
cache: true | ||
- uses: sigstore/[email protected] # installs cosign | ||
- uses: sigstore/[email protected] # installs cosign | ||
- uses: anchore/sbom-action/[email protected] # installs syft | ||
- uses: docker/login-action@v3 # login to ghcr | ||
- uses: docker/login-action@v3 # login to ghcr | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: goreleaser/goreleaser-action@v6 # run goreleaser | ||
- uses: goreleaser/goreleaser-action@v6 # run goreleaser | ||
with: | ||
version: latest | ||
args: release --clean | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/attest-build-provenance@v2 | ||
with: | ||
subject-checksums: ./dist/checksums.txt |