Skip to content

Commit

Permalink
chore: Update Cloudflare Pages deployment configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Ray-D-Song committed Oct 9, 2024
1 parent cdbdfeb commit 72bdfe4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/deploy-to-cloudflare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ jobs:
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages project create faker-server --production-branch=main || true
command: |
if ! pages project list | grep -q "faker-server"; then
pages project create faker-server --production-branch=main
else
echo "Project faker-server already exists"
fi
- name: Publish to Cloudflare Pages
uses: cloudflare/wrangler-action@v3
Expand Down

0 comments on commit 72bdfe4

Please sign in to comment.