-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 947 Bytes
/
github-pages.yml
File metadata and controls
37 lines (34 loc) · 947 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
31
32
33
34
35
36
37
name: github-pages
on:
push:
branches:
- main
permissions:
contents: write
jobs:
publish-gh-page:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v3
- name: Setup Python 3.10
uses: actions/setup-python@v4.2.0
with:
python-version: '3.10'
- name: merge usage documentation files into one
run: python scripts/md_merge.py --input user --lang en --output . --name author_guide.md
- name: convert markdown to html
uses: docker://pandoc/latex:2.19
with:
args: >-
author_guide.md
-f markdown
-t html
-o public/index.html
--lua-filter=etc/filters.lua
--defaults=etc/defaults.yaml
- name: deploy to GitHub pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: public