2022-08-08 02:33:59 +00:00
|
|
|
name: Deploy to Github Pages
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deployment:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Setup Node
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
2023-07-02 02:48:35 +00:00
|
|
|
node-version: 18
|
2022-08-08 02:33:59 +00:00
|
|
|
cache: 'npm'
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: |
|
2023-08-08 02:12:28 +00:00
|
|
|
npm ci
|
2022-08-08 02:33:59 +00:00
|
|
|
npm run build
|
|
|
|
|
|
|
|
- name: Deploy
|
2022-08-08 02:42:51 +00:00
|
|
|
uses: peaceiris/actions-gh-pages@v3
|
2022-08-08 02:33:59 +00:00
|
|
|
with:
|
2022-08-08 02:42:51 +00:00
|
|
|
deploy_key: ${{ secrets.DEPLOY_KEY }}
|
|
|
|
publish_dir: ./build
|
|
|
|
force_orphan: true
|