mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-10 01:28:41 -06:00
fix release commit, prevent creating releases from prs
This commit is contained in:
parent
b038c65e74
commit
7e08d2a4c1
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
|
@ -49,7 +49,7 @@ jobs:
|
||||||
publish-nightly:
|
publish-nightly:
|
||||||
needs: build
|
needs: build
|
||||||
permissions: write-all
|
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
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v2
|
||||||
|
@ -67,6 +67,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: nightly
|
name: nightly
|
||||||
tag: nightly
|
tag: nightly
|
||||||
|
commit: ${GITHUB_SHA}
|
||||||
allowUpdates: true
|
allowUpdates: true
|
||||||
removeArtifacts: true
|
removeArtifacts: true
|
||||||
replacesArtifacts: true
|
replacesArtifacts: true
|
||||||
|
@ -78,7 +79,7 @@ jobs:
|
||||||
publish-release:
|
publish-release:
|
||||||
needs: build
|
needs: build
|
||||||
permissions: write-all
|
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
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v2
|
||||||
|
|
Loading…
Reference in a new issue