Skip to content

Commit

Permalink
feat: prepare for the new releases
Browse files Browse the repository at this point in the history
Signed-off-by: Batuhan Apaydın <[email protected]>
  • Loading branch information
developer-guy committed Dec 21, 2021
1 parent bcde6f7 commit 51b042e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,9 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: 1.17.x
- name: Install Cosign
uses: sigstore/cosign-installer@main
with:
cosign-release: 'v1.3.0'
- uses: sigstore/[email protected]
- uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COSIGN_EXPERIMENTAL: 1
13 changes: 11 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,17 @@ checksum:
name_template: 'checksums.txt'
signs:
- cmd: cosign
args: ["sign-blob", "--oidc-issuer=https://token.actions.githubusercontent.com", "--output=${signature}", "${artifact}"]
artifacts: checksum
env:
- COSIGN_EXPERIMENTAL=1
signature: "${artifact}.sig"
certificate: "${artifact}.pem"
args:
- sign-blob
- '--oidc-issuer={{if index .Env "CI"}}https://token.actions.githubusercontent.com{{else}}https://oauth2.sigstore.dev/auth{{end}}'
- '--output-certificate=${certificate}'
- '--output-signature=${signature}'
- '${artifact}'
artifacts: chekcksum
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
Expand Down

0 comments on commit 51b042e

Please sign in to comment.