Skip to content

Commit 70e11ac

Browse files
committed
enhance: add build-artifacts workflow for artifact creation and upload
1 parent 8e0b764 commit 70e11ac

2 files changed

Lines changed: 61 additions & 1 deletion

File tree

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Build Artifacts Only
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
build-artifacts:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v4
11+
12+
- name: Setup node
13+
uses: actions/setup-node@v4
14+
with:
15+
node-version: 20
16+
17+
- name: Install dependencies
18+
run: |
19+
export ELECTRON_SKIP_BINARY_DOWNLOAD=1
20+
npm install
21+
cd src/webui/FE
22+
npm install
23+
24+
- name: Build
25+
run: |
26+
npm run build
27+
npm run build-webui
28+
29+
- name: Compress dist
30+
run: |
31+
mkdir llonebot-win-x64
32+
sudo apt install zip -y
33+
cd ./dist/
34+
mv 使用说明.txt ../llonebot-win-x64/
35+
zip -r ../LLOneBot.zip ./*
36+
37+
- name: Compress for Windows
38+
run: |
39+
cd llonebot-win-x64
40+
mv ../dist/更新日志.txt ./
41+
mv ../dist ./llonebot
42+
wget https://github.com/linyuchen/PMHQ/releases/latest/download/pmhq-win-x64.zip
43+
unzip pmhq-win-x64.zip
44+
rm pmhq-win-x64.zip
45+
mv pmhq-win-x64.exe llonebot.exe
46+
wget https://github.com/LLOneBot/exe/releases/latest/download/node.exe -O llonebot/node.exe
47+
zip -r ../LLOneBot-win-x64.zip ./*
48+
wget https://github.com/LLOneBot/exe/releases/latest/download/ffmpeg.exe -O llonebot/ffmpeg.exe
49+
wget https://github.com/LLOneBot/exe/releases/latest/download/ffprobe.exe -O llonebot/ffprobe.exe
50+
zip -r ../LLOneBot-win-x64-ffmpeg.zip ./*
51+
52+
- name: Upload artifacts
53+
uses: actions/upload-artifact@v4
54+
with:
55+
name: llonebot-builds
56+
path: |
57+
LLOneBot.zip
58+
LLOneBot-win-x64.zip
59+
LLOneBot-win-x64-ffmpeg.zip
60+
retention-days: 30

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Integrate NTQQ
1+
name: Release
22
on:
33
push:
44
tags:

0 commit comments

Comments
 (0)