mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
chore: workflow
This commit is contained in:
parent
f7268c30ca
commit
f913e0b027
85
.github/workflows/build.yml
vendored
85
.github/workflows/build.yml
vendored
@ -1,8 +1,7 @@
|
|||||||
name: "Build Action"
|
name: "Build Action"
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
pull_request:
|
||||||
- main
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions: write-all
|
permissions: write-all
|
||||||
@ -11,60 +10,38 @@ jobs:
|
|||||||
Build-LiteLoader:
|
Build-LiteLoader:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Clone Main Repository
|
- name: Clone Main Repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
- name: Use Node.js 20.X
|
||||||
repository: 'NapNeko/NapCatQQ'
|
uses: actions/setup-node@v4
|
||||||
submodules: true
|
with:
|
||||||
ref: main
|
node-version: 20.x
|
||||||
token: ${{ secrets.NAPCAT_BUILD }}
|
- name: Build NapCat.Framework
|
||||||
- name: Use Node.js 20.X
|
run: |
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: 20.x
|
|
||||||
- name: Build NuCat Framework
|
|
||||||
run: |
|
|
||||||
npm i
|
npm i
|
||||||
cd napcat.webui
|
npm run build:framework && npm run depend
|
||||||
npm i
|
|
||||||
cd ..
|
|
||||||
npm run build:framework
|
|
||||||
cd dist
|
|
||||||
npm i --omit=dev
|
|
||||||
rm package-lock.json
|
rm package-lock.json
|
||||||
cd ..
|
- name: Upload Artifact
|
||||||
- name: Upload Artifact
|
uses: actions/upload-artifact@v4
|
||||||
uses: actions/upload-artifact@v4
|
with:
|
||||||
with:
|
name: NapCat.Framework
|
||||||
name: NapCat.Framework
|
path: dist
|
||||||
path: dist
|
|
||||||
Build-Shell:
|
Build-Shell:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Clone Main Repository
|
- name: Clone Main Repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
- name: Use Node.js 20.X
|
||||||
repository: 'NapNeko/NapCatQQ'
|
uses: actions/setup-node@v4
|
||||||
submodules: true
|
with:
|
||||||
ref: main
|
node-version: 20.x
|
||||||
token: ${{ secrets.NAPCAT_BUILD }}
|
- name: Build NapCat.Shell
|
||||||
- name: Use Node.js 20.X
|
run: |
|
||||||
uses: actions/setup-node@v4
|
npm i
|
||||||
with:
|
npm run build:shell && npm run depend
|
||||||
node-version: 20.x
|
rm package-lock.json
|
||||||
- name: Build NuCat LiteLoader
|
- name: Upload Artifact
|
||||||
run: |
|
uses: actions/upload-artifact@v4
|
||||||
npm i
|
with:
|
||||||
cd napcat.webui
|
name: NapCat.Shell
|
||||||
npm i
|
path: dist
|
||||||
cd ..
|
|
||||||
npm run build:shell
|
|
||||||
cd dist
|
|
||||||
npm i --omit=dev
|
|
||||||
rm package-lock.json
|
|
||||||
cd ..
|
|
||||||
- name: Upload Artifact
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: NapCat.Shell
|
|
||||||
path: dist
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user