Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
www: add gh-pages build & publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Nov 14, 2019
1 parent b602c30 commit 440129f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: gh-pages

on:
push:
branches:
- master

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v1
with:
fetch-depth: 1

- name: Build with Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'
- run: npm install
- run: npm run build

- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v2.5.1
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./html/.vuepress/dist/

0 comments on commit 440129f

Please sign in to comment.