Skip to content

Commit 87ce076

Browse files
committed
🐳 chore: 修复构建打包
1 parent 45b1bf1 commit 87ce076

2 files changed

Lines changed: 20 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ jobs:
5656
path: |
5757
dist/*.exe
5858
dist/*.exe.blockmap
59+
dist/*.yml
5960
# 创建 GitHub Release
6061
- name: Release
6162
uses: softprops/action-gh-release@v2
@@ -114,6 +115,7 @@ jobs:
114115
path: |
115116
dist/*.exe
116117
dist/*.exe.blockmap
118+
dist/*.yml
117119
# 创建 GitHub Release
118120
- name: Release
119121
uses: softprops/action-gh-release@v2
@@ -166,7 +168,9 @@ jobs:
166168
with:
167169
name: SPlayer-macOS-x64
168170
if-no-files-found: ignore
169-
path: dist/*.*
171+
path: |
172+
dist/*.*
173+
dist/*.yml
170174
# 创建 GitHub Release
171175
- name: Release
172176
uses: softprops/action-gh-release@v2
@@ -217,7 +221,9 @@ jobs:
217221
with:
218222
name: SPlayer-macOS-ARM64
219223
if-no-files-found: ignore
220-
path: dist/*.*
224+
path: |
225+
dist/*.*
226+
dist/*.yml
221227
# 创建 GitHub Release
222228
- name: Release
223229
uses: softprops/action-gh-release@v2
@@ -254,6 +260,8 @@ jobs:
254260
# 安装 Snapcraft
255261
- name: Install Snapcraft
256262
uses: samuelmeuli/action-snapcraft@v2
263+
with:
264+
snapcraft_token: ${{ secrets.SNAPCRAFT_TOKEN }}
257265
# 复制环境变量文件
258266
- name: Copy .env.example
259267
run: |
@@ -274,20 +282,25 @@ jobs:
274282
shell: bash
275283
env:
276284
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
285+
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
277286
# 上传 Snap 包到 Snapcraft 商店
278287
- name: Publish Snap to Snap Store
279288
run: |
280289
if [ -f dist/*.snap ]; then
281290
snapcraft upload dist/*.snap --release stable || echo "Snap upload failed or not configured"
282291
fi
283292
continue-on-error: true
293+
env:
294+
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
284295
# 上传构建产物
285296
- name: Upload Linux x64 artifact
286297
uses: actions/upload-artifact@v4
287298
with:
288299
name: SPlayer-Linux-x64
289300
if-no-files-found: ignore
290-
path: dist/*.*
301+
path: |
302+
dist/*.*
303+
dist/*.yml
291304
# 创建 GitHub Release
292305
- name: Release
293306
uses: softprops/action-gh-release@v2
@@ -348,7 +361,9 @@ jobs:
348361
with:
349362
name: SPlayer-Linux-ARM64
350363
if-no-files-found: ignore
351-
path: dist/*.*
364+
path: |
365+
dist/*.*
366+
dist/*.yml
352367
# 创建 GitHub Release
353368
- name: Release
354369
uses: softprops/action-gh-release@v2

electron-builder.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,4 @@ publish:
141141
# url: https://example.com/auto-updates
142142
owner: "imsyy"
143143
repo: "SPlayer"
144+
publishAutoUpdate: false

0 commit comments

Comments
 (0)