Skip to content

Commit

Permalink
🐳 chore(auto_build): 支持自动构建并上传
Browse files Browse the repository at this point in the history
  • Loading branch information
AkashiCoin committed Oct 9, 2024
1 parent df335ed commit 48d020a
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/auto_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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 zhenun_docs
run: |
git checkout --orphan zhenxun_docs
mv build ../
rm -rf ./.github ./.gitignore ./*
mv ../build/* ./
git config --local user.email '[email protected]'
git config --local user.name 'AkashiCoin'
git add .
git commit -m ":book: chore(zhenxun_docs): 自动构建文档"
- name: Upload dist files
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GH_TOKEN }}
branch: zhenxun_docs
repository: HibiKier/zhenxun_bot
force: true

0 comments on commit 48d020a

Please sign in to comment.