mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-12-03 18:38:23 +00:00
ci: fix release hiccups caused by draft release (#4125)
This commit is contained in:
parent
b9746100e2
commit
3538efe727
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
@ -265,12 +265,16 @@ jobs:
|
|||||||
- name: Setup | Checksums
|
- name: Setup | Checksums
|
||||||
run: for file in starship-*/starship-*; do openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done
|
run: for file in starship-*/starship-*; do openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done
|
||||||
|
|
||||||
|
- name: Setup | Publish Release
|
||||||
|
run: gh release edit ${{ needs.release_please.outputs.tag_name }} --draft=false --repo=starship/starship
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build | Add Artifacts to Release
|
- name: Build | Add Artifacts to Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
files: starship-*/starship-*
|
files: starship-*/starship-*
|
||||||
tag_name: ${{ needs.release_please.outputs.tag_name }}
|
tag_name: ${{ needs.release_please.outputs.tag_name }}
|
||||||
draft: false
|
|
||||||
|
|
||||||
# Publish starship to Crates.io
|
# Publish starship to Crates.io
|
||||||
cargo_publish:
|
cargo_publish:
|
||||||
@ -303,7 +307,10 @@ jobs:
|
|||||||
formula-name: starship
|
formula-name: starship
|
||||||
tag-name: ${{ needs.release_please.outputs.tag_name }}
|
tag-name: ${{ needs.release_please.outputs.tag_name }}
|
||||||
env:
|
env:
|
||||||
|
# Used for creating the formula update PR
|
||||||
COMMITTER_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
|
COMMITTER_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
|
||||||
|
# Used for verifying the SHA256 sum of the draft release
|
||||||
|
GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
|
||||||
|
|
||||||
winget_update:
|
winget_update:
|
||||||
name: Update Winget Manifest
|
name: Update Winget Manifest
|
||||||
|
Loading…
Reference in New Issue
Block a user