From 65abbc82cf2a03e35a07cf401dc9b82265d8aa9b Mon Sep 17 00:00:00 2001 From: ayntgl <90600421+ayntgl@users.noreply.github.com> Date: Wed, 2 Mar 2022 23:44:20 +0400 Subject: [PATCH] ci: upload artifact only on push to default branch --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2b90c0f..cee5015 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,7 @@ jobs: run: make build - uses: actions/upload-artifact@v2 + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} with: name: discordo_${{ runner.os }}_${{ runner.arch }} path: |