diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2c12808..dc8ac40 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -108,7 +108,5 @@ jobs: name: ${{ env.TITLE }} prerelease: ${{ env.IS_PRERELEASE }} - name: Publish on crates.io - if: > - matrix.os == 'ubuntu-latest' && github.repository_owner == 'ttytm' - && ((github.ref_name == 'main' && github.event_name == 'push') || github.ref_type == 'tag') + if: github.repository_owner == 'ttytm' && github.ref_type == 'tag' && matrix.os == 'ubuntu-latest' run: cargo publish --token ${{ secrets.CRATES_TOKEN }}