From 7cd4eb97bf9f2b28daea5d1b1700419d08150874 Mon Sep 17 00:00:00 2001 From: doinkythederp Date: Sun, 20 Oct 2024 22:50:10 -0700 Subject: [PATCH 1/3] Switch away from deprecated pages-action --- .github/workflows/deploy.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b6b72e4..4b9e9ad 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,6 +1,6 @@ name: Build Book & Deploy to CF Pages -on: [push] +on: [push, workflow_dispatch] jobs: build: @@ -37,11 +37,9 @@ jobs: name: book path: book - - name: Publish | Cloudflare Pages - uses: cloudflare/pages-action@1 + - name: Deploy | Cloudflare Pages + uses: cloudflare/wrangler-action@v3 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - projectName: 3636docs - directory: book - gitHubToken: ${{ secrets.GITHUB_TOKEN }} + command: pages deploy book --project-name=3636docs From af8438faf9c3dce059ce29747637e5b260153225 Mon Sep 17 00:00:00 2001 From: doinkythederp Date: Sun, 20 Oct 2024 22:52:25 -0700 Subject: [PATCH 2/3] Update deploy.yml --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4b9e9ad..1282db4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -32,7 +32,7 @@ jobs: uses: actions/checkout@v3 - name: Setup | Download Artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: book path: book From 82b5bb8ddaf7e302f8e49d86b02a78f25deb1311 Mon Sep 17 00:00:00 2001 From: doinkythederp Date: Sun, 20 Oct 2024 22:56:17 -0700 Subject: [PATCH 3/3] Update deploy.yml --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1282db4..c867dda 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,7 +19,7 @@ jobs: run: mdbook build - name: Upload | Book - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: book path: book