diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 09071fc..c164514 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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/github-tag-action@v5.4 @@ -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: