From 9b207532e5195d1c59b4d6fb1c222d6ddc400691 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 1 Aug 2026 06:23:31 -0400 Subject: [PATCH] Fix DO deploy endpoint: /deploy -> /deployments Static Sites on App Platform use POST /v2/apps/:id/deployments (not /deploy which is for Services and returns 405). --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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')