-
Notifications
You must be signed in to change notification settings - Fork 18
38 lines (38 loc) · 936 Bytes
/
deploy.yml
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
31
32
33
34
35
36
37
38
name: Deploy Pages
on:
push:
paths:
- 'chapter*/**'
- 'preface/**'
- 'SUMMARY.md'
- 'README.md'
workflow_dispatch:
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Legacy Node.js
uses: actions/setup-node@v4
with:
node-version: 10
- name: Build GitBook
shell: bash
run: |
npm install -g gitbook-cli
gitbook install .
gitbook build .
- name: Setup Modern Node.js
uses: actions/setup-node@v4
with:
node-version: current
- name: Get Wrangler
shell: bash
run: npm install wrangler --save-dev
- name: Publish
shell: bash
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_TOKEN }}
run: npx wrangler pages deploy _book/ --project-name tcd-harbinger