forked from diimdeep/awesome-split-keyboards
-
Notifications
You must be signed in to change notification settings - Fork 10
37 lines (31 loc) · 1.23 KB
/
build.yaml
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: Build site
on:
push:
branches:
- master
jobs:
build_site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: about_to_html
uses: docker://pandoc/latex:2.9
with:
args: --from=markdown --to=html --metadata pagetitle="About" --include-in-header=head.hc --include-before-body=nav.hc --include-after-body=tail.hc --wrap=auto --output=about.html about.md
- id: diy_to_html
uses: docker://pandoc/latex:2.9
with:
args: --from=markdown --to=html --metadata pagetitle="DIY" --include-in-header=head.hc --include-before-body=nav.hc --include-after-body=tail.hc --wrap=auto --output=diy.html diy.md
- id: links_to_html
uses: docker://pandoc/latex:2.9
with:
args: --from=markdown --to=html --metadata pagetitle="Links" --include-in-header=head.hc --include-before-body=nav.hc --include-after-body=tail.hc --wrap=auto --output=links.html links.md
- id: index_to_html
run: |
./build-sort
./build-index
git config user.name github-actions
git config user.email github-actions@github.com
git add -u
git commit -m "Regenerated HTML pages"
git push