Skip to content

Commit

Permalink
ci: Only deploy production if a release was created
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobsvante committed Jan 8, 2025
1 parent a539fab commit 32dbb84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,14 @@ jobs:
uses: dtolnay/rust-toolchain@stable
- name: Run release-plz
uses: release-plz/[email protected]
id: release-plz
with:
command: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Notify hyperkliv/www-samling-io
if: steps.release-plz.outputs.releases_created
uses: peter-evans/repository-dispatch@v3
with:
# https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#triggering-a-workflow-from-a-workflow
Expand Down

0 comments on commit 32dbb84

Please sign in to comment.