fix release commit, prevent creating releases from prs

This commit is contained in:
griffi-gh 2023-05-19 02:34:14 +02:00
parent b038c65e74
commit 7e08d2a4c1

View file

@ -49,7 +49,7 @@ jobs:
publish-nightly:
needs: build
permissions: write-all
if: (github.ref == 'refs/heads/master') && (!startsWith(github.ref, 'refs/tags/v'))
if: (github.event_name == 'push') && (github.ref == 'refs/heads/master')
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
@ -67,6 +67,7 @@ jobs:
with:
name: nightly
tag: nightly
commit: ${GITHUB_SHA}
allowUpdates: true
removeArtifacts: true
replacesArtifacts: true
@ -78,7 +79,7 @@ jobs:
publish-release:
needs: build
permissions: write-all
if: startsWith(github.ref, 'refs/tags/v')
if: (github.event_name == 'push') && startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2