Skip to content

Commit 85efbe7

Browse files
authored
add ci (#115)
1 parent 3f3ae4a commit 85efbe7

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Continuous Integration
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
8+
jobs:
9+
10+
test:
11+
runs-on: ubuntu-20.04
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Read .env
16+
id: mdbook-version
17+
run: |
18+
. ./.env
19+
echo "::set-output name=MDBOOK_VERSION::${MDBOOK_VERSION}"
20+
21+
- name: Setup mdBook
22+
uses: peaceiris/actions-mdbook@v1
23+
with:
24+
mdbook-version: '${{ steps.mdbook-version.outputs.MDBOOK_VERSION }}'
25+
26+
- run: mdbook build

0 commit comments

Comments
 (0)