mirror of
https://github.com/edera-dev/sprout.git
synced 2026-11-04 15:42:20 +00:00
fix(ci): build releases from the release tag
The release workflow checked out the ref it was dispatched on, usually main, instead of the release tag. The published binaries and their provenance attestation could come from a different commit than the tag they were attached to. Check out the tag instead.
This commit is contained in:
1 parent
8f09c94857
commit
5b10fe9576
1 file changed
+2
@@ -32,6 +32,8 @@ jobs:
|
||||
- name: checkout
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
# Build the tagged commit, not whichever ref the workflow was dispatched on.
|
||||
ref: "refs/tags/${{ github.event.inputs.release-tag }}"
|
||||
persist-credentials: false
|
||||
|
||||
- name: 'install rust toolchain'
|
||||
|
||||
Reference in new issue
Block a user