-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.33 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
name: Deploy Page
on:
push:
branches:
- main
jobs:
pages:
runs-on: ubuntu-latest
steps:
# Checkout -----------------
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: recursive
# Setup Node ----------------
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
# Install markmap-cli ----------------
- name: Install markmap-cli
run: npm i markmap-cli
# Transform Markdown to HTML in Target Folder ----------------
- name: Transform Several Markdown to HTML
run: |
for file in source/_static/markmap/*.md; do
markmap $file -o ${file%.md}.html --no-open
done
# Sphinxdoc Image ----------------
- name: Use Docker Image
uses: addnab/docker-run-action@v3
with:
image: hsiangjenli/sphinx-doc:paper-digest-2024-11-19
options: --platform linux/amd64 -v ${{ github.workspace }}:/docs --user root
run: |
python source/_static/gen_keyword/script.py && make html
# Deploy ----------------
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/html