ci/depoly: try to fix depoly condition
All checks were successful
/ depoly (push) Successful in 1m10s

This commit is contained in:
thislight 2024-07-14 22:15:02 +08:00
parent cac01f1dab
commit f82788495f
No known key found for this signature in database
GPG key ID: A50F9451AC56A63E

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'