add ci (#115)
parent
3f3ae4ae73
commit
85efbe7fc3
@ -0,0 +1,26 @@
|
||||
name: Continuous Integration
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Read .env
|
||||
id: mdbook-version
|
||||
run: |
|
||||
. ./.env
|
||||
echo "::set-output name=MDBOOK_VERSION::${MDBOOK_VERSION}"
|
||||
|
||||
- name: Setup mdBook
|
||||
uses: peaceiris/actions-mdbook@v1
|
||||
with:
|
||||
mdbook-version: '${{ steps.mdbook-version.outputs.MDBOOK_VERSION }}'
|
||||
|
||||
- run: mdbook build
|
Loading…
Reference in New Issue