Skip to content

Twilight Book

Twilight Book #143

Workflow file for this run

name: Twilight Book
on:
release:
types: [created]
workflow_dispatch:
jobs:
deploy:
name: Deploy book
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v2
with:
mdbook-version: "latest"
- run: mdbook build book --dest-dir render
- name: Publish book
uses: cloudflare/wrangler-action@v3
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
command: pages deploy render --project-name twilight-book --commit-dirty=true --branch main
workingDirectory: "book"