We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e57a617 + 5ecc7bf commit f272b47Copy full SHA for f272b47
.github/actions/cargo-publish/action.yml
@@ -27,8 +27,12 @@ runs:
27
${{ runner.temp }}/artifacts
28
29
- name: Log into crates.io
30
- if: github.event_name != 'pull_request' && github.event_name != 'merge_group' && github.event_name != 'issue_comment'
31
- run: cargo login -- ${{ inputs.cargo-registry-token }}
+ if: >
+ github.event_name == 'push' && (
32
+ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) ||
33
+ startsWith(github.ref, 'refs/tags/v')
34
+ )
35
+ run: cargo login ${{ inputs.cargo-registry-token }}
36
shell: bash
37
38
- run: gh release delete --yes Unreleased || exit 0
0 commit comments