-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.22 KB
/
webpage.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Basic personal page generation
on:
push:
branches:
- main
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
env:
fail-fast: true
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Build main homepage
uses: docker://pandoc/core:3.2
with:
args: >-
--standalone
--from commonmark_x+alerts
--output=website/index.html
--template=pandoc/template.html4
--css=style.css
--toc
--toc-depth=1
--resource-path=.
--lua-filter=pandoc/paper.lua
src/index.md
- name: Setup Pages
if: github.ref_name == github.event.repository.default_branch
uses: actions/configure-pages@v3
- name: Upload artifact
if: github.ref_name == github.event.repository.default_branch
uses: actions/upload-pages-artifact@v1
with:
path: 'website'
- name: Deploy to GitHub Pages
if: github.ref_name == github.event.repository.default_branch
id: deployment
uses: actions/deploy-pages@v1