Merge pull request #16 from amphineko/deploy-action

Automatically deploy to GitHub Pages via Actions
This commit is contained in:
amphineko 2020-02-14 13:07:05 +08:00 committed by GitHub
commit 07f5ee43fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

28
.github/workflows/deploy-pages.yml vendored Normal file
View File

@ -0,0 +1,28 @@
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