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.
32 lines
607 B
32 lines
607 B
name: Deploy to Github Pages
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: "16.6.0"
|
|
|
|
- name: Install npm dependencies
|
|
run: yarn install
|
|
|
|
- name: Build website
|
|
run: yarn run export
|
|
env:
|
|
NODE_ENV: production
|
|
|
|
- name: Deploy to pages
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./out
|