Quiet the Pages project-create step on existing deploys
- commit
- c981b1a8fa02ab760d2e575d7f6ed846635cfa4a
- parent
- e7ae000f99b68ed60ddc956581ddb0f4cc534744
- parent
- 6287d3cf1dfaa5dc15d2e65ffbd1d0d3f0760620
- author
- FelineStateMachine <dami.etoile@gmail.com>
| M | .github/ | 4 | +++- |
@@ -70,5 +70,7 @@ jobs:
7070 CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}7171 CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}7272 run: |73- npx --yes wrangler@4 pages project create lofi-host --production-branch=main || true73+ if ! npx --yes wrangler@4 pages project list | grep -q "lofi-host"; then74+ npx --yes wrangler@4 pages project create lofi-host --production-branch=main75+ fi7476 npx --yes wrangler@4 pages deploy site-build --project-name=lofi-host --branch=main