ci(release): build the dispatched tag, not the dispatch ref
Some checks failed
ci / test (push) Failing after 21s
Some checks failed
ci / test (push) Failing after 21s
Without this a workflow_dispatch re-publish would have built main and attached a binary whose --version did not match the release tag.
This commit is contained in:
parent
91fd9601b8
commit
e7c0b98a2b
1 changed files with 5 additions and 0 deletions
|
|
@ -31,6 +31,11 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: https://code.forgejo.org/actions/checkout@v4
|
uses: https://code.forgejo.org/actions/checkout@v4
|
||||||
|
with:
|
||||||
|
# A tag push builds that tag; a manual dispatch builds the tag the
|
||||||
|
# caller named (otherwise the binary version would not match the
|
||||||
|
# release it is attached to).
|
||||||
|
ref: ${{ github.event.inputs.tag || github.ref_name }}
|
||||||
|
|
||||||
- name: Build ${{ env.TARGET }} in a rust container
|
- name: Build ${{ env.TARGET }} in a rust container
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue