-
Notifications
You must be signed in to change notification settings - Fork 28
38 lines (33 loc) · 923 Bytes
/
auto_build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: 自动构建并上传
on:
push:
branches: [ "main" ]
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install and Build
run: |
yarn
yarn run build
- name: Commit dist
run: |
git checkout --orphan dist
mv dist ../
rm -rf ./.github ./.gitignore ./*
mv ../dist ./dist
git config --local user.email '[email protected]'
git config --local user.name 'AkashiCoin'
git add .
git commit -m "chore(dist): upload dist"
- name: Upload dist files
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: dist
repository: HibiKier/zhenxun_bot_webui
force: true