forked from twilight-rs/twilight
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (24 loc) · 727 Bytes
/
book.yml
File metadata and controls
30 lines (24 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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@v1
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"