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 063ba33
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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
- name: Install Dependencies
run: yarn install
- name: Build
run: 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: ./build
with:
emptyCommits: false
keepFiles: false

0 comments on commit 063ba33

Please sign in to comment.