From f82788495f33309332b00d7f6cad3d1d638b007d Mon Sep 17 00:00:00 2001 From: thislight Date: Sun, 14 Jul 2024 22:15:02 +0800 Subject: [PATCH] ci/depoly: try to fix depoly condition --- .forgejo/workflows/depoly.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/depoly.yml b/.forgejo/workflows/depoly.yml index a64b095..a340d9d 100644 --- a/.forgejo/workflows/depoly.yml +++ b/.forgejo/workflows/depoly.yml @@ -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'