瀏覽代碼

ci: upload artifact only on push to default branch

ayntgl 4 年之前
父節點
當前提交
65abbc82cf
共有 1 個文件被更改,包括 1 次插入0 次删除
  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: |