Skip to content

Commit

Permalink
add tag name to the provenance
Browse files Browse the repository at this point in the history
Signed-off-by: cpanato <ctadeu@gmail.com>
  • Loading branch information
cpanato committed Mar 14, 2023
1 parent 2860fcf commit e1061f7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
goreleaser:
outputs:
hashes: ${{ steps.hash.outputs.hashes }}
tag_name: ${{ steps.tag.outputs.tag_name }}

runs-on: ubuntu-latest
steps:
Expand All @@ -18,6 +19,9 @@ jobs:
with:
go-version: 1.18
check-latest: true
- name: Set tag output
id: tag
run: echo "tag_name=${GITHUB_REF#refs/*/}" >> "$GITHUB_OUTPUT"
- uses: goreleaser/goreleaser-action@v4.2.0
id: run-goreleaser
with:
Expand Down Expand Up @@ -66,6 +70,7 @@ jobs:
with:
base64-subjects: "${{ needs.goreleaser.outputs.hashes }}"
upload-assets: true
upload-tag-name: "${{ needs.release.outputs.tag_name }}"

verification:
needs: [goreleaser, provenance]
Expand Down

0 comments on commit e1061f7

Please sign in to comment.