Skip to content

Commit

Permalink
Switch away from deprecated pages-action (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
doinkythederp authored Oct 21, 2024
2 parents c7c8a9f + 82b5bb8 commit 48366fd
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Build Book & Deploy to CF Pages

on: [push]
on: [push, workflow_dispatch]

jobs:
build:
Expand All @@ -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
Expand All @@ -32,16 +32,14 @@ jobs:
uses: actions/checkout@v3

- name: Setup | Download Artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
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

0 comments on commit 48366fd

Please sign in to comment.