Merge pull request #16 from amphineko/deploy-action
Automatically deploy to GitHub Pages via Actions
This commit is contained in:
commit
07f5ee43fa
28
.github/workflows/deploy-pages.yml
vendored
Normal file
28
.github/workflows/deploy-pages.yml
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user