add file
This commit is contained in:
19
.github/workflows/gh-pages.yml
vendored
19
.github/workflows/gh-pages.yml
vendored
@ -5,18 +5,27 @@ on:
|
||||
branches:
|
||||
- main
|
||||
|
||||
env:
|
||||
GITEA_MAIL: ${{ secrets.GITEA_MAIL }}
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
|
||||
jobs:
|
||||
build-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/setup-node@v1
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 14
|
||||
node-version: 16
|
||||
ref: main
|
||||
submodules: true
|
||||
fetch-depth: 0
|
||||
- run: yarn install
|
||||
- run: |
|
||||
yarn install
|
||||
rm -rf public
|
||||
git clone https://${GITEA_TOKEN}@git.syui.ai/ai/card_public public
|
||||
rm -rf public/.git*
|
||||
rm -rf public/static
|
||||
|
||||
- name: Build
|
||||
env:
|
||||
@ -29,3 +38,5 @@ jobs:
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./dist
|
||||
user_name: 'ai[bot]'
|
||||
user_email: '138105980+yui-syui-ai[bot]@users.noreply.github.com'
|
||||
|
Reference in New Issue
Block a user