[GitHub Actions] Only create releases for canary
This commit is contained in:
parent
47fd120794
commit
58d8d51692
|
@ -60,7 +60,7 @@ jobs:
|
||||||
path: artifacts
|
path: artifacts
|
||||||
|
|
||||||
- name: Create Release
|
- 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
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
env:
|
env:
|
||||||
|
@ -74,7 +74,7 @@ jobs:
|
||||||
- Second Change
|
- Second Change
|
||||||
|
|
||||||
- name: Upload Release Asset
|
- 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
|
id: upload-release-asset
|
||||||
uses: actions/upload-release-asset@v1.0.1
|
uses: actions/upload-release-asset@v1.0.1
|
||||||
env:
|
env:
|
||||||
|
|
Loading…
Reference in New Issue