Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
syui committed Mar 19, 2024
1 parent f3eab1c commit 049c8a9
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: github pages

on:
push:
branches:
- main

jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
ref: main
submodules: true
fetch-depth: 0
- name: setting
shell: zsh {0}
env:
GITEA_MAIL: ${{ secrets.GITEA_MAIL }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
- run: |
npm i
git config --global user.email $GITEA_MAIL
git config --global user.name syui
git clone https://${GITEA_TOKEN}@git.syui.ai/ai/vrma ./dist/vrma
- name: Build
env:
TZ: "Asia/Tokyo"
run: |
npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
user_name: 'ai[bot]'
user_email: '138105980+yui-syui-ai[bot]@users.noreply.github.com'
1 change: 1 addition & 0 deletions dist/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v.syui.ai

0 comments on commit 049c8a9

Please sign in to comment.