Homepage/.github/workflows/deploy-pages.yml
2020-02-14 12:43:54 +08:00

29 lines
513 B
YAML

name: Deploy to GitHub Pages
on:
push:
branches:
- master
- deploy-action
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Invoke Webpack build
run: |
npm install .
npm run build
- name: Invoke Deployment
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: dist
uses: JamesIves/github-pages-deploy-action@3.2.1