Create main.yml

This commit is contained in:
Carl Fredrik Samson
2020-01-25 14:39:29 +01:00
committed by GitHub
parent bb994bd80c
commit 5d04e2d1d5

26
.github/workflows/main.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: github pages
on:
push:
branches:
- master
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: 'latest'
- run: mdbook build
- name: Deploy
uses: peaceiris/actions-gh-pages@v2
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./book