File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed
Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff 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 }}
You can’t perform that action at this time.
0 commit comments