From ca97ae2e15e4909b67e7ae78ea83a6b4875d9f1f Mon Sep 17 00:00:00 2001 From: Xevion Date: Sat, 5 Oct 2024 17:11:11 -0500 Subject: [PATCH] Re-enable cargo publish --- .github/workflows/build.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 48e7b03..5ec4252 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -157,9 +157,10 @@ jobs: ${{ env.ARCHIVE_DIR }}/${{ env.ARCHIVE }} generate_release_notes: true - # Publish flow - # - name: cargo login - # run: cargo login ${{ secrets.CRATES_IO_API_TOKEN }} + - name: cargo login + if: startsWith(github.ref, 'refs/tags/') + run: cargo login ${{ secrets.CRATES_IO_API_TOKEN }} - # - name: "cargo release publish" - # run: cargo release publish --workspace --all-features --allow-branch HEAD --no-confirm --no-verify --execute \ No newline at end of file + - name: "cargo release publish" + if: startsWith(github.ref, 'refs/tags/') + run: cargo release publish --workspace --all-features --allow-branch HEAD --no-confirm --no-verify --execute \ No newline at end of file