1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-12-29 04:23:26 +00:00

ci: fix release hiccups caused by draft release (#4125)

This commit is contained in:
Matan Kushner 2022-06-28 14:18:19 -04:00 committed by GitHub
parent b9746100e2
commit 3538efe727
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -265,12 +265,16 @@ jobs:
- name: Setup | Checksums
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
uses: softprops/action-gh-release@v1
with:
files: starship-*/starship-*
tag_name: ${{ needs.release_please.outputs.tag_name }}
draft: false
# Publish starship to Crates.io
cargo_publish:
@ -303,7 +307,10 @@ jobs:
formula-name: starship
tag-name: ${{ needs.release_please.outputs.tag_name }}
env:
# Used for creating the formula update PR
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:
name: Update Winget Manifest