Skip to content

Commit

Permalink
ci(release-please): change conditions for publishing the release
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-yantsen committed Dec 5, 2023
1 parent 345effe commit 3df63e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ jobs:
uses: actions/checkout@v4
# these if statements ensure that a publication only occurs when
# a new release is created:
if: ${{ steps.release.outputs.releases_created }}
if: steps.release.outputs.releases_created == 'true'
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
if: ${{ steps.release.outputs.releases_created }}
if: steps.release.outputs.releases_created == 'true'
- run: cargo publish -p ${{ matrix.crate }}
env:
CARGO_REGISTRY_TOKEN: "${{ secrets.CRATES_IO_TOKEN }}"
if: ${{ steps.release.outputs.releases_created }}
if: steps.release.outputs.releases_created == 'true'

0 comments on commit 3df63e8

Please sign in to comment.