Parcourir la source

ci: upload artifact only on push to default branch

ayntgl il y a 4 ans
Parent
commit
65abbc82cf
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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: |