chore: Add github workflows config.

pull/120/head
jaywcjlove
parent 4f1ee4666f
commit 471b549e8c

@ -0,0 +1,36 @@
name: GitHub Actions Deploy hotkeys-js
on:
push:
# branches:
# - master
tags:
- v1.*
jobs:
build-deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '10.x'
# - name: Cache dependencies
# uses: actions/cache@v1
# with:
# path: ~/.npm
# key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ runner.os }}-node-
- run: npm install
- run: npm run build
- run: npm run doc
- name: Build and Deploy
uses: peaceiris/actions-gh-pages@v2.5.0
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./doc
Loading…
Cancel
Save