From 361895a12145f5ba5e17e1e24371bae7462fc78d Mon Sep 17 00:00:00 2001 From: geniucker-dev Date: Wed, 8 Jan 2025 17:18:34 +0800 Subject: [PATCH] ci: fix deployment --- .github/workflows/deploy.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d165274..35c27ea 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -6,6 +6,9 @@ on: - main workflow_dispatch: +permissions: + deployments: write + jobs: build: runs-on: ubuntu-latest @@ -28,9 +31,9 @@ jobs: run: python3 .github/scripts/build.py - name: Publish to Cloudflare Pages - uses: cloudflare/pages-action@v1 + uses: cloudflare/wrangler-action@v3 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - projectName: zjuintl-icicles - directory: site + command: pages deploy site --project-name=zjuintl-icicles + gitHubToken: ${{ secrets.GITHUB_TOKEN }}