mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-20 12:38:43 +00:00
Fix setting release to latest in release-cli.yml (#1879)
* Fix setting release to latest in release-cli.yml Using gh-release-edit Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> * Update .github/workflows/release-cli.yml Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> --------- Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
a8eea5bc72
commit
d02d7b2a69
1 changed files with 7 additions and 1 deletions
8
.github/workflows/release-cli.yml
vendored
8
.github/workflows/release-cli.yml
vendored
|
@ -110,7 +110,7 @@ jobs:
|
||||||
run: cargo publish -p "$crate" --allow-dirty --no-default-features
|
run: cargo publish -p "$crate" --allow-dirty --no-default-features
|
||||||
|
|
||||||
- if: fromJSON(inputs.info).is-release == 'true'
|
- if: fromJSON(inputs.info).is-release == 'true'
|
||||||
name: Make release latest
|
name: Upload minisign.pub
|
||||||
uses: svenstaro/upload-release-action@v2
|
uses: svenstaro/upload-release-action@v2
|
||||||
with:
|
with:
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
@ -120,6 +120,12 @@ jobs:
|
||||||
promote: true
|
promote: true
|
||||||
file: minisign.pub
|
file: minisign.pub
|
||||||
|
|
||||||
|
- if: fromJSON(inputs.info).is-release == 'true'
|
||||||
|
name: Make release latest
|
||||||
|
run: gh release edit v${{ fromJSON(inputs.info).version }} --latest --draft=false
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- if: fromJSON(inputs.info).is-release == 'true'
|
- if: fromJSON(inputs.info).is-release == 'true'
|
||||||
name: Delete signing key artifact
|
name: Delete signing key artifact
|
||||||
uses: geekyeggo/delete-artifact@v5
|
uses: geekyeggo/delete-artifact@v5
|
||||||
|
|
Loading…
Add table
Reference in a new issue