mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-19 19:04:23 +08:00
修复 release 产物收集问题
- 更新产物路径以匹配 Tauri 2.x 的 target-specific 输出目录 - Windows: 添加 x86_64-pc-windows-msvc 路径 - macOS: 添加 x86_64/aarch64/universal 路径 - Linux: 添加 x86_64-unknown-linux-gnu 路径 - 更新 release job 的文件匹配模式,使用具体的 artifact 目录 - 添加调试步骤列出所有产物文件 - 修复 release job 的条件判断,正确处理 skipped 状态的构建任务
This commit is contained in:
+26
-12
@@ -89,7 +89,9 @@ jobs:
|
|||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: dist-win
|
name: dist-win
|
||||||
path: src-tauri/target/release/bundle/**
|
path: |
|
||||||
|
src-tauri/target/x86_64-pc-windows-msvc/release/bundle/**
|
||||||
|
src-tauri/target/release/bundle/**
|
||||||
|
|
||||||
build_mac:
|
build_mac:
|
||||||
needs: parse
|
needs: parse
|
||||||
@@ -123,7 +125,11 @@ jobs:
|
|||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: dist-mac
|
name: dist-mac
|
||||||
path: src-tauri/target/release/bundle/**
|
path: |
|
||||||
|
src-tauri/target/x86_64-apple-darwin/release/bundle/**
|
||||||
|
src-tauri/target/aarch64-apple-darwin/release/bundle/**
|
||||||
|
src-tauri/target/universal-apple-darwin/release/bundle/**
|
||||||
|
src-tauri/target/release/bundle/**
|
||||||
|
|
||||||
build_linux:
|
build_linux:
|
||||||
needs: parse
|
needs: parse
|
||||||
@@ -160,7 +166,9 @@ jobs:
|
|||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: dist-linux
|
name: dist-linux
|
||||||
path: src-tauri/target/release/bundle/**
|
path: |
|
||||||
|
src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/**
|
||||||
|
src-tauri/target/release/bundle/**
|
||||||
|
|
||||||
build_android:
|
build_android:
|
||||||
needs: parse
|
needs: parse
|
||||||
@@ -218,12 +226,18 @@ jobs:
|
|||||||
|
|
||||||
release:
|
release:
|
||||||
needs: [parse, build_win, build_mac, build_linux, build_android]
|
needs: [parse, build_win, build_mac, build_linux, build_android]
|
||||||
if: ${{ always() && needs.parse.outputs.tag != '' }}
|
if: ${{ always() && needs.parse.outputs.tag != '' && (needs.build_win.result == 'success' || needs.build_win.result == 'skipped') && (needs.build_mac.result == 'success' || needs.build_mac.result == 'skipped') && (needs.build_linux.result == 'success' || needs.build_linux.result == 'skipped') && (needs.build_android.result == 'success' || needs.build_android.result == 'skipped') }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: artifacts
|
path: artifacts
|
||||||
|
merge-multiple: true
|
||||||
|
|
||||||
|
- name: 列出产物文件
|
||||||
|
run: |
|
||||||
|
echo "Artifacts found:"
|
||||||
|
find artifacts -type f -name "*.msi" -o -name "*.exe" -o -name "*.dmg" -o -name "*.app.tar.gz" -o -name "*.deb" -o -name "*.rpm" -o -name "*.AppImage" -o -name "*.apk" 2>/dev/null || true
|
||||||
|
|
||||||
- name: 发布 Release
|
- name: 发布 Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
@@ -233,11 +247,11 @@ jobs:
|
|||||||
draft: True
|
draft: True
|
||||||
prerelease: ${{ contains(needs.parse.outputs.version, '-') }}
|
prerelease: ${{ contains(needs.parse.outputs.version, '-') }}
|
||||||
files: |
|
files: |
|
||||||
artifacts/**/*.msi
|
artifacts/dist-win/**/*.msi
|
||||||
artifacts/**/*.exe
|
artifacts/dist-win/**/*.exe
|
||||||
artifacts/**/*.dmg
|
artifacts/dist-mac/**/*.dmg
|
||||||
artifacts/**/*.app.tar.gz
|
artifacts/dist-mac/**/*.app.tar.gz
|
||||||
artifacts/**/*.deb
|
artifacts/dist-linux/**/*.deb
|
||||||
artifacts/**/*.rpm
|
artifacts/dist-linux/**/*.rpm
|
||||||
artifacts/**/*.AppImage
|
artifacts/dist-linux/**/*.AppImage
|
||||||
artifacts/**/*.apk
|
artifacts/dist-android/**/*.apk
|
||||||
|
|||||||
Reference in New Issue
Block a user