Skip to content

Commit 594e87f

Browse files
authored
Update release.yml
1 parent 543954d commit 594e87f

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,24 @@ jobs:
7979
- name: Build application
8080
run: pnpm tauri build --target ${{ matrix.target }}
8181

82-
- name: Upload build artifacts
82+
- name: Upload build artifacts (macOS)
83+
if: matrix.platform == 'macos-latest'
8384
uses: actions/upload-artifact@v4
8485
with:
8586
name: release-${{ matrix.os }}
86-
path: src-tauri/target/release/bundle/
87+
path: |
88+
src-tauri/target/release/bundle/dmg/*.dmg
89+
src-tauri/target/release/bundle/macos/*.app
90+
retention-days: 30
91+
92+
- name: Upload build artifacts (Windows)
93+
if: matrix.platform == 'windows-latest'
94+
uses: actions/upload-artifact@v4
95+
with:
96+
name: release-${{ matrix.os }}
97+
path: |
98+
src-tauri/target/release/bundle/msi/*.msi
99+
src-tauri/target/release/bundle/nsis/*.exe
87100
retention-days: 30
88101

89102
# 创建或更新 GitHub Release
@@ -141,4 +154,4 @@ jobs:
141154
tag_name: ${{ github.event.release.tag_name }}
142155
files: release-assets/*
143156
env:
144-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
157+
GH_TOKEN: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)