2023-03-31 19:51:52 +00:00
|
|
|
name: github pages
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
2024-03-22 20:22:41 +00:00
|
|
|
node-version: 21
|
2023-03-31 19:51:52 +00:00
|
|
|
ref: main
|
|
|
|
submodules: true
|
|
|
|
fetch-depth: 0
|
2023-03-31 19:52:34 +00:00
|
|
|
- run: |
|
|
|
|
yarn install
|
|
|
|
yarn add @google/model-viewer
|
2023-03-31 19:51:52 +00:00
|
|
|
|
|
|
|
- name: Build
|
|
|
|
env:
|
|
|
|
TZ: "Asia/Tokyo"
|
|
|
|
run: |
|
|
|
|
yarn build
|
|
|
|
|
|
|
|
- name: Deploy
|
|
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
publish_dir: ./dist
|
2023-03-31 19:52:34 +00:00
|
|
|
user_name: 'ai[bot]'
|
|
|
|
user_email: '138105980+yui-syui-ai[bot]@users.noreply.github.com'
|