You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
537 B
28 lines
537 B
name: Deploy website
|
|
on:
|
|
release:
|
|
types: [published]
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build-and-deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@master
|
|
|
|
- name: install
|
|
run: npm install
|
|
|
|
- name: build
|
|
run: npm run predeploy
|
|
|
|
- name: deploy
|
|
uses: peaceiris/actions-gh-pages@v2.5.0
|
|
env:
|
|
ACTIONS_DEPLOY_KEY: ${{ secrets.ACCESS_TOKEN }}
|
|
PUBLISH_BRANCH: gh-pages
|
|
PUBLISH_DIR: ./_site
|
|
with:
|
|
emptyCommits: false
|
|
|