From 1b53e94f95f49ca1e0754c7b4bbc6036a2bd81e2 Mon Sep 17 00:00:00 2001 From: fotiecodes <42372656+FotieMConstant@users.noreply.github.com> Date: Sun, 22 Sep 2024 18:23:20 +0300 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2b5666e..c43bc2b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -47,7 +47,14 @@ jobs: run: | cd docs-beta npm run build - + - name: Set Vercel root directory via API + run: | + curl -X PATCH "https://api.vercel.com/v9/projects/${{ secrets.VERCEL_PROJECT_ID }}" \ + -H "Authorization: Bearer ${{ secrets.VERCEL_TOKEN }}" \ + -H "Content-Type: application/json" \ + -d '{ + "rootDirectory": "" + }' - name: Deploy to Vercel uses: amondnet/vercel-action@v20 with: