Skip to content

Commit

Permalink
Ensure publish works before tagging release
Browse files Browse the repository at this point in the history
  • Loading branch information
MathiasPius committed Jan 28, 2025
1 parent afa1671 commit d03253b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ jobs:
script: |
core.setFailed('Tag already exists')
- name: Publish crate to crates.io
uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_LOGIN_TOKEN }}
ignore-unpublished-changes: true

- name: Push the crate version as a tag
id: tag_version
uses: mathieudutour/[email protected]
Expand All @@ -98,12 +104,6 @@ jobs:
tag_prefix: "v"
custom_tag: ${{ steps.crate-version.outputs.version }}

- name: Publish crate to crates.io
uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_LOGIN_TOKEN }}
ignore-unpublished-changes: true

create-release:
needs: tag
permissions:
Expand Down

0 comments on commit d03253b

Please sign in to comment.