diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8986661..441d4c8 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -67,12 +67,12 @@ jobs: echo "=== Found DO app ID: $APP_ID ===" - # Trigger deployment + # Trigger deployment (Static Sites use /deployments, not /deploy) echo "=== Triggering deployment ===" DEPLOY_JSON=$(curl -s -w "\n%{http_code}" -X POST \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ - "https://api.digitalocean.com/v2/apps/$APP_ID/deploy") + "https://api.digitalocean.com/v2/apps/$APP_ID/deployments") DEPLOY_HTTP=$(echo "$DEPLOY_JSON" | tail -1) DEPLOY_BODY=$(echo "$DEPLOY_JSON" | sed '$d')