-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (40 loc) · 1.17 KB
/
Copy pathdeploy_ghpages.yml
File metadata and controls
54 lines (40 loc) · 1.17 KB
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
name: Deploy Github Pages
on:
push:
branches:
- main
paths:
- main.md
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Run apt update
run: sudo apt -yqq update
- name: Run apt upgrade
run: sudo apt -yqq upgrade
- name: Install dependencies available via apt
run: sudo apt -yqq install weasyprint wget curl
- name: Install xml2rfc
run: pip install xml2rfc
- name: Download and extract mmark
run: |
wget https://github.com/mmarkdown/mmark/releases/download/v2.2.46/mmark_2.2.46_linux_amd64.tgz
tar --no-same-owner -xvf mmark_2.2.46_linux_amd64.tgz
- name: Make build folder
run: mkdir ./build
- name: Render to XML with mmark
run: ./mmark main.md > build/index.xml
- name: Run xml2rfc
run: cd build/ && xml2rfc --html index.xml && cd ../
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build