Browse Source

ci: upload artifact only on push to default branch

ayntgl 4 năm trước cách đây
mục cha
commit
65abbc82cf
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      .github/workflows/ci.yml

+ 1 - 0
.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: |