Skip to content

Merge pull request #18 from Edward-ba/patch-1 #94

Merge pull request #18 from Edward-ba/patch-1

Merge pull request #18 from Edward-ba/patch-1 #94

Workflow file for this run

name: Build/Test/Deploy
on:
push:
branches-ignore:
- gh-pages
workflow_dispatch:
pull_request:
jobs:
build:
permissions:
contents: write
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v2-beta
with:
node-version: '12'
- name: Checkout Repository
uses: actions/checkout@v2
with:
fetch-depth: '0'
persist-credentials: false
submodules: 'recursive'
- name: Install
run: npm install
- name: Build
run: npm run build
- name: Deploy
uses: JamesIves/[email protected]
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main'}}
with:
BRANCH: gh-pages
FOLDER: src/.vuepress/dist
CLEAN: true