ci: upload artifact only on push to default branch

This commit is contained in:
ayntgl 2022-03-02 23:44:20 +04:00 • committed by GitHub
parent 26b34b83dd
commit 65abbc82cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: |