1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-11-28 07:46:28 +00:00

ci: publish to cargo and brew after successful release

This commit is contained in:
Matan Kushner 2022-08-18 22:50:55 -04:00
parent 892604bf4e
commit 627a05862b
No known key found for this signature in database
GPG Key ID: 01D4B591C43BE629

View File

@ -277,7 +277,7 @@ jobs:
cargo_publish: cargo_publish:
name: Publish Cargo Package name: Publish Cargo Package
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: release_please needs: [release_please, upload_artifacts]
if: ${{ needs.release_please.outputs.release_created == 'true' }} if: ${{ needs.release_please.outputs.release_created == 'true' }}
steps: steps:
- name: Setup | Checkout - name: Setup | Checkout
@ -296,7 +296,7 @@ jobs:
update_brew_formula: update_brew_formula:
name: Update Brew Formula name: Update Brew Formula
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: release_please needs: [release_please, upload_artifacts]
if: ${{ needs.release_please.outputs.release_created == 'true' }} if: ${{ needs.release_please.outputs.release_created == 'true' }}
steps: steps:
- uses: mislav/bump-homebrew-formula-action@v2.1 - uses: mislav/bump-homebrew-formula-action@v2.1