Skip to content

Commit

Permalink
ci: publish to cargo only if the current runner is linux x86_64
Browse files Browse the repository at this point in the history
  • Loading branch information
shiipou committed Sep 6, 2024
1 parent 091ae04 commit 9df76c2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 9df76c2

Please sign in to comment.