[GitHub Actions] Only create releases for canary

This commit is contained in:
Margen67 2020-01-16 01:39:32 -08:00 committed by illusion
parent eb3b63d3da
commit 405e1a7dee
1 changed files with 2 additions and 2 deletions

View File

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