Skip to content

Commit

Permalink
Skip publish job if no tag is pushed
Browse files Browse the repository at this point in the history
  • Loading branch information
mmghannam committed Oct 27, 2023
1 parent a54115f commit 341eec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ jobs:
override: true
- name: publish crate
uses: katyo/publish-crates@v2
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
with:
dry-run: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

windows-test:
Expand Down

0 comments on commit 341eec3

Please sign in to comment.