chore: build

This commit is contained in:
手瓜一十雪 2024-08-12 01:13:03 +08:00
parent a8e913cfde
commit a0fbb0f861
2 changed files with 9 additions and 9 deletions

View File

@ -8,7 +8,7 @@ on:
permissions: write-all
jobs:
build-liteloader:
Build-LiteLoader:
if: ${{ startsWith(github.event.head_commit.message, 'build:') }}
runs-on: ubuntu-latest
steps:
@ -23,7 +23,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Build NuCat Linux
- name: Build NuCat LiteLoader
run: |
npm i
npm run build:prod
@ -35,7 +35,7 @@ jobs:
with:
name: NapCat.LiteLoader
path: dist
build-shell:
Build-Shell:
if: ${{ startsWith(github.event.head_commit.message, 'build:') }}
runs-on: ubuntu-latest
steps:

View File

@ -30,7 +30,7 @@ jobs:
ls
node ./script/checkVersion.cjs
sh ./checkVersion.sh
build-Liteloader:
Build-LiteLoader:
needs: [check-version]
runs-on: ubuntu-latest
steps:
@ -56,9 +56,9 @@ jobs:
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: NapCat.Liteloader
name: NapCat.LiteLoader
path: dist
build-Shell:
Build-Shell:
runs-on: ubuntu-latest
needs: [check-version]
steps:
@ -75,7 +75,7 @@ jobs:
with:
node-version: 20.x
- name: Build NuCat Linux
- name: Build NuCat Shell
run: |
npm i
npm run build:prod
@ -90,7 +90,7 @@ jobs:
path: dist
release-napcat:
needs: [build-Liteloader,build-Shell]
needs: [Build-LiteLoader,Build-Shell]
runs-on: ubuntu-latest
steps:
- name: Download All Artifact
@ -116,7 +116,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
body_path: CHANGELOG.md
files: |
NapCat.Liteloader.zip
NapCat.LiteLoader.zip
NapCat.Shell.zip
# NapCat.darwin.x64.zip
# NapCat.darwin.arm64.zip