[GitHub Actions] Only create releases for canary
This commit is contained in:
parent
eb3b63d3da
commit
405e1a7dee
|
@ -60,7 +60,7 @@ jobs:
|
|||
path: artifacts
|
||||
|
||||
- name: Create Release
|
||||
if: github.event.action != 'pull_request' && matrix.cpu_arch == 'AVX'
|
||||
if: github.event.action != 'pull_request' && github.ref == 'refs/heads/canary' && matrix.cpu_arch == 'AVX'
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
|
@ -74,7 +74,7 @@ jobs:
|
|||
- Second Change
|
||||
|
||||
- name: Upload Release Asset
|
||||
if: github.event.action != 'pull_request' && matrix.cpu_arch == 'AVX'
|
||||
if: github.event.action != 'pull_request' && github.ref == 'refs/heads/canary' && matrix.cpu_arch == 'AVX'
|
||||
id: upload-release-asset
|
||||
uses: actions/upload-release-asset@v1.0.1
|
||||
env:
|
||||
|
|
Loading…
Reference in New Issue