1
0
card/.github/workflows/gh-pages.yml

42 lines
891 B
YAML
Raw Normal View History

2023-03-31 19:51:52 +00:00
name: github pages
on:
push:
branches:
- main
2023-03-31 19:52:34 +00:00
env:
GITEA_MAIL: ${{ secrets.GITEA_MAIL }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
2023-03-31 19:51:52 +00:00
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
2023-03-31 19:52:34 +00:00
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
2023-03-31 19:51:52 +00:00
with:
2023-03-31 19:52:34 +00:00
node-version: 16
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
rm -rf public
git clone https://${GITEA_TOKEN}@git.syui.ai/ai/card-public public
rm -rf public/.git
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'