ci/depoly: try to fix depoly condition

This commit is contained in:
thislight 2024-07-14 22:15:02 +08:00
parent d206bfaedd
commit 942b9dcce8

View file

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