-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from AkashiCoin/auto-build
feat(build): 支持自动构建并上传
- Loading branch information
Showing
4 changed files
with
41 additions
and
33,481 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 install | ||
yarn build | ||
- name: Commit dist | ||
run: | | ||
git checkout --orphan dist | ||
mv dist ../ | ||
rm -rf ./* | ||
mv ../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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,6 @@ pnpm-debug.log* | |
*.sln | ||
*.sw? | ||
|
||
dist | ||
dist | ||
package-lock.json | ||
yarn.lock |
Oops, something went wrong.