From e6d8c982b5fd49fb6a1fa95d70f6dad3b51d7c87 Mon Sep 17 00:00:00 2001 From: Raymond Cheng Date: Wed, 23 Oct 2024 16:19:31 -0700 Subject: [PATCH] fix: use wrangler directly when trying to publish to docs (#2386) --- .github/workflows/deploy-docusaurus-docs.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-docusaurus-docs.yml b/.github/workflows/deploy-docusaurus-docs.yml index 2bbaba3ef..142a561b2 100644 --- a/.github/workflows/deploy-docusaurus-docs.yml +++ b/.github/workflows/deploy-docusaurus-docs.yml @@ -48,9 +48,15 @@ jobs: - name: Build run: pnpm build:docs + - name: Install wrangler + run: pnpm add -g wrangler + - name: Publish - uses: cloudflare/wrangler-action@v3 - with: - apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} - workingDirectory: "apps/docs" - command: pages deploy build --project-name=docs-opensource-observer + run: wrangler pages deploy apps/docs/build --project-name=docs-opensource-observer + +# - name: Publish +# uses: cloudflare/wrangler-action@v3 +# with: +# apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} +# workingDirectory: "apps/docs" +# command: pages deploy build --project-name=docs-opensource-observer