From 5ce2de20351bd022ce9e965fe3c6b2e4abdb61e6 Mon Sep 17 00:00:00 2001 From: Wanjohi <71614375+wanjohiryan@users.noreply.github.com> Date: Fri, 24 Nov 2023 16:56:35 +0300 Subject: [PATCH] Fi for release --- .github/workflows/warp.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/warp.yml b/.github/workflows/warp.yml index 07bddf4..5cc6f23 100644 --- a/.github/workflows/warp.yml +++ b/.github/workflows/warp.yml @@ -57,11 +57,11 @@ jobs: run: cargo build --target ${{ matrix.settings.target }} --manifest-path ./moq-pub/Cargo.toml --release - name: Copy and rename artifacts (Linux) - if: ${{ matrix.settings.host == 'ubuntu-20.04' }} run: | cp target/${{ matrix.settings.target }}/release/moq-pub ./warp - name: Publish artifacts (${{ matrix.settings.host }}) + if: ${{ github.event_name != 'release' }} uses: actions/upload-artifact@v3 with: name: ${{ matrix.settings.asset_name }} @@ -70,6 +70,7 @@ jobs: retention-days: 5 - name: Publish release for (${{ matrix.settings.host }}) + if: ${{ github.event_name == 'release' }} uses: svenstaro/upload-release-action@2.7.0 with: repo_token: ${{ secrets.GITHUB_TOKEN }}