Skip to content

Commit 8ef2be3

Browse files
committed
chore: add .github/workflows/ci.yml
1 parent cee04da commit 8ef2be3

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
jobs:
8+
website:
9+
runs-on: ubuntu-20.04
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v2
13+
with:
14+
node-version: 14
15+
16+
- run: mkdir -p build build/example
17+
- run: cp -rp example build/example
18+
- run: npm i markdown-to-html-cli -g
19+
- run: markdown-to-html --output build/index.html
20+
21+
- name: Deploy
22+
uses: peaceiris/actions-gh-pages@v3
23+
with:
24+
github_token: ${{ secrets.GITHUB_TOKEN }}
25+
publish_dir: ./build

0 commit comments

Comments
 (0)