From 7c1d6af43600d4e535fb87b36adbfe2c4ccffb97 Mon Sep 17 00:00:00 2001 From: winston Date: Sat, 28 Oct 2023 01:32:44 +0200 Subject: [PATCH] ci: only publish to crates.io once --- .github/workflows/upload-rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/upload-rust.yml b/.github/workflows/upload-rust.yml index 64495f20..9a964f55 100644 --- a/.github/workflows/upload-rust.yml +++ b/.github/workflows/upload-rust.yml @@ -62,7 +62,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: gh release upload "${{ inputs.tag }}" ${{ steps.build.outputs.binary }} - if: ${{ !env.ACT }} + if: ${{ !env.ACT || runner.os == 'ubuntu-latest' }} - name: Upload to artifact uses: actions/upload-artifact@v2