Update .gitea/workflows/deploy.yaml
Some checks failed
Deploy to Cloudflare Pages via API / deploy (push) Failing after 55s

This commit is contained in:
2025-10-27 12:03:06 +00:00
parent b8b031eb2e
commit e06988b990

View File

@@ -33,13 +33,10 @@ jobs:
- name: Deploy to Cloudflare Pages
run: |
# Create a new deployment
DEPLOY_RESPONSE=$(curl -X POST "https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/pages/projects/$PAGES_PROJECT_NAME/deployments" \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
-F "files=@deployment.zip" \
-F "manifest={\"site\": \"site\"}") # Adjust manifest if needed
# Check for success
-F "manifest={\"site\": \"site\"}")
if echo "$DEPLOY_RESPONSE" | grep -q '"success":true'; then
echo "Deployment successful!"
else