From dd9cd2501cb45f72aec1ceb4dac7429cc2715550 Mon Sep 17 00:00:00 2001 From: Antony David Date: Thu, 19 Dec 2024 21:18:53 +0100 Subject: [PATCH] fix: publish after bump of the version --- .github/workflows/release.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7e97e33..b95d15d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -80,11 +80,6 @@ jobs: with: persist-credentials: true - - name: Publish to crates.io - run: cargo publish - env: - CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} - - uses: taiki-e/install-action@v2 with: tool: cargo-edit @@ -103,10 +98,15 @@ jobs: - name: Tag the version env: GIT_TAG: ${{ inputs.publish-tag }} - run: | + run: |+ git tag "${GIT_TAG}" git push origin "${GIT_TAG}" + - name: Publish to crates.io + run: cargo publish + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + - name: Create github release uses: taiki-e/create-gh-release-action@v1 with: