Skip to content

Commit 8cca8c1

Browse files
CI backward compatibility (#257)
* Update github-pages.yml * convert readme to html
1 parent 83777ba commit 8cca8c1

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/github-pages.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,26 @@ jobs:
88
steps:
99
- name: Checkout
1010
uses: actions/checkout@v4
11+
12+
- name: Install pandoc
13+
run: |
14+
sudo apt-get update
15+
sudo apt-get install -y pandoc
1116
1217
- name: Build site
1318
run: |
1419
rm -rf dist
1520
mkdir -p dist
16-
cp ./docs.html ./dist/index.html
21+
22+
pandoc README.md \
23+
--from=gfm \
24+
--to=html5 \
25+
--standalone \
26+
--metadata title="README" \
27+
-o dist/index.html
28+
29+
cp ./logo.png ./dist/logo.png
30+
cp ./docs.html ./dist/docs.html
1731
1832
- name: Upload Pages artifact
1933
uses: actions/upload-pages-artifact@v3
@@ -40,3 +54,4 @@ jobs:
4054
id: deployment
4155
uses: actions/deploy-pages@v4
4256

57+

0 commit comments

Comments
 (0)