Skip to content

Commit 5d986ac

Browse files
author
29486
committed
ci: 新增 release-linux 任务(AppImage + deb,供 v0.2.8 补发 Linux 包)
1 parent 1e1ffbd commit 5d986ac

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,36 @@ jobs:
107107
release/*.exe
108108
if-no-files-found: error
109109

110+
release-linux:
111+
name: Package Linux (AppImage + deb)
112+
runs-on: ubuntu-24.04
113+
timeout-minutes: 40
114+
if: github.event_name == 'workflow_dispatch' || startsWith(github.ref, 'refs/tags/v')
115+
steps:
116+
- uses: actions/checkout@v4
117+
- uses: actions/setup-node@v4
118+
with:
119+
node-version: 20
120+
cache: npm
121+
- name: Install dependencies
122+
run: npm ci
123+
- name: Rebuild native modules for Electron ABI
124+
run: npx electron-builder install-app-deps
125+
- name: Build (electron-vite)
126+
run: npm run build
127+
- name: Package Linux
128+
run: npm run dist:linux -- --publish never
129+
env:
130+
CSC_IDENTITY_AUTO_DISCOVERY: 'false'
131+
- name: Upload Linux artifacts
132+
uses: actions/upload-artifact@v4
133+
with:
134+
name: ourcode-ide-linux-x64
135+
path: |
136+
release/*.AppImage
137+
release/*.deb
138+
if-no-files-found: error
139+
110140
release-macos-arm64:
111141
name: Package macOS (Apple Silicon)
112142
runs-on: macos-latest

0 commit comments

Comments
 (0)