From 63a634163b6a506e88455e11d1b6215e385b2d7d Mon Sep 17 00:00:00 2001 From: Martin Larralde Date: Mon, 26 Sep 2022 22:30:59 +0200 Subject: [PATCH] Fix release of binaries on GitHub Actions --- .github/workflows/test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cedb996..bfc269b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -96,6 +96,7 @@ jobs: needs: release name: Upload ${{ matrix.target }} runs-on: ubuntu-latest + if: "startsWith(github.ref, 'refs/tags/v')" strategy: fail-fast: false matrix: @@ -109,6 +110,7 @@ jobs: steps: - uses: actions/checkout@master - name: Compile release archives + id: compile uses: rust-build/rust-build.action@v1.3.2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -117,7 +119,6 @@ jobs: EXTRA_FILES: "README.md CHANGELOG.md COPYING" ARCHIVE_TYPES: ${{ matrix.archive }} - name: Release archives - if: startsWith(github.ref, 'refs/tags/') uses: softprops/action-gh-release@v1 with: files: |