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'