Skip to content

Commit

Permalink
Add GitHub action to build docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cmfcmf committed Jan 15, 2020
1 parent 298ede7 commit 7f01b93
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Use Node.js 10.x
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Build Docs
run: |
cd docs
yarn install
yarn build
- name: Upload to GitHub Pages
if: github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v2.5.0
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./docs/build
with:
emptyCommits: false
keepFiles: false

0 comments on commit 7f01b93

Please sign in to comment.