From 0fe2f8e2faccb668aa56e672c7b88d764f9f8c36 Mon Sep 17 00:00:00 2001 From: shiipou Date: Fri, 6 Sep 2024 17:30:11 +0200 Subject: [PATCH] ci: publish to cargo only if the current runner is linux x86_64 --- .github/workflows/build.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9b53452..b1ed4ca 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -94,11 +94,10 @@ jobs: path: ./clone-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.file_extension }} - name: Publish cargo - if: ${{ needs.get-version.outputs.will-release }} + if: ${{ needs.get-version.outputs.will-release && matrix.os == 'linux' && matrix.arch == 'x86_64' }} shell: bash run: cargo publish -p clone-project-manager --allow-dirty --token "${{ secrets.CARGO_TOKEN }}" - release: needs: [ get-version, build ] if: ${{ needs.get-version.outputs.will-release }}