build: don't publish canary verion from non-main branch (#12986)

This commit is contained in:
Bartek Iwańczuk 2021-12-07 14:49:20 +01:00 committed by GitHub
parent 622bff4ebc
commit eb4a8fc8a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -618,8 +618,7 @@ jobs:
name: publish canary
runs-on: ubuntu-20.04
needs: ["build"]
if: github.repository == 'denoland/deno' &&
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
if: github.repository == 'denoland/deno' && github.ref == 'refs/heads/main'
steps:
- name: Setup gcloud
uses: google-github-actions/setup-gcloud@master