ci/depoly: try to fix depoly condition
This commit is contained in:
parent
d206bfaedd
commit
942b9dcce8
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ jobs:
|
|||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
command: pages deploy --project-name=tututheapp dist
|
||||
if: github.event.ref_type == 'branch'
|
||||
if: env.GITHUB_REF_NAME == 'master'
|
||||
|
||||
- name: Depoly to Production
|
||||
uses: https://github.com/cloudflare/wrangler-action@v3
|
||||
|
@ -45,5 +45,5 @@ jobs:
|
|||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
command: pages deploy --project-name=tututheapp dist --branch=production
|
||||
if: github.event.ref_type == 'tag'
|
||||
if: env.GITHUB_REF_NAME != 'master'
|
||||
|
||||
|
|
Loading…
Reference in a new issue