From 6cea7fce2f071a9a35eb5d4bfa82c0f3236a399a Mon Sep 17 00:00:00 2001 From: Xevion Date: Sun, 6 Oct 2024 15:20:50 -0500 Subject: [PATCH] Limit publish to 1 primary target, allow dirty repo dirty due to .cargo/config.github.toml --- .github/workflows/build.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 5cd69dd..3bdefd1 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -181,9 +181,9 @@ jobs: ${{ env.ARCHIVE_DIR }}/${{ env.ARCHIVE }}.sig generate_release_notes: true - - if: startsWith(github.ref, 'refs/tags/') + - if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.target == 'x86_64-unknown-linux-musl' }} run: cargo login ${{ secrets.CRATES_IO_API_TOKEN }} - name: "Publish" - if: startsWith(github.ref, 'refs/tags/') - run: cargo publish --locked \ No newline at end of file + if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.target == 'x86_64-unknown-linux-musl' }} + run: cargo publish --locked --allow-dirty \ No newline at end of file