Fix desktop release artifact globs (#1155)
Co-authored-by: xingzhi <chuzihao.czh@alibaba-inc.com>
This commit is contained in:
@@ -29,26 +29,45 @@ jobs:
|
|||||||
target_os: darwin
|
target_os: darwin
|
||||||
target_arch: arm64
|
target_arch: arm64
|
||||||
electron_target: "--mac dmg --arm64"
|
electron_target: "--mac dmg --arm64"
|
||||||
|
artifact_files: |
|
||||||
|
packages/desktop/release/*.dmg
|
||||||
|
packages/desktop/release/*.dmg.blockmap
|
||||||
|
packages/desktop/release/latest*.yml
|
||||||
- label: macOS x64
|
- label: macOS x64
|
||||||
runner: macos-15-intel
|
runner: macos-15-intel
|
||||||
target_os: darwin
|
target_os: darwin
|
||||||
target_arch: x64
|
target_arch: x64
|
||||||
electron_target: "--mac dmg --x64"
|
electron_target: "--mac dmg --x64"
|
||||||
|
artifact_files: |
|
||||||
|
packages/desktop/release/*.dmg
|
||||||
|
packages/desktop/release/*.dmg.blockmap
|
||||||
|
packages/desktop/release/latest*.yml
|
||||||
- label: Windows x64
|
- label: Windows x64
|
||||||
runner: windows-latest
|
runner: windows-latest
|
||||||
target_os: win32
|
target_os: win32
|
||||||
target_arch: x64
|
target_arch: x64
|
||||||
electron_target: "--win nsis --x64"
|
electron_target: "--win nsis --x64"
|
||||||
|
artifact_files: |
|
||||||
|
packages/desktop/release/*.exe
|
||||||
|
packages/desktop/release/*.exe.blockmap
|
||||||
|
packages/desktop/release/latest*.yml
|
||||||
- label: Linux x64
|
- label: Linux x64
|
||||||
runner: ubuntu-22.04
|
runner: ubuntu-22.04
|
||||||
target_os: linux
|
target_os: linux
|
||||||
target_arch: x64
|
target_arch: x64
|
||||||
electron_target: "--linux AppImage deb --x64"
|
electron_target: "--linux AppImage deb --x64"
|
||||||
|
artifact_files: |
|
||||||
|
packages/desktop/release/*.AppImage
|
||||||
|
packages/desktop/release/*.deb
|
||||||
|
packages/desktop/release/latest*.yml
|
||||||
- label: Linux arm64
|
- label: Linux arm64
|
||||||
runner: ubuntu-22.04-arm
|
runner: ubuntu-22.04-arm
|
||||||
target_os: linux
|
target_os: linux
|
||||||
target_arch: arm64
|
target_arch: arm64
|
||||||
electron_target: "--linux AppImage --arm64"
|
electron_target: "--linux AppImage --arm64"
|
||||||
|
artifact_files: |
|
||||||
|
packages/desktop/release/*.AppImage
|
||||||
|
packages/desktop/release/latest*.yml
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
@@ -102,11 +121,4 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
tag_name: ${{ github.event.release.tag_name || github.event.inputs.tag }}
|
tag_name: ${{ github.event.release.tag_name || github.event.inputs.tag }}
|
||||||
fail_on_unmatched_files: true
|
fail_on_unmatched_files: true
|
||||||
files: |
|
files: ${{ matrix.artifact_files }}
|
||||||
packages/desktop/release/*.dmg
|
|
||||||
packages/desktop/release/*.dmg.blockmap
|
|
||||||
packages/desktop/release/*.exe
|
|
||||||
packages/desktop/release/*.exe.blockmap
|
|
||||||
packages/desktop/release/*.AppImage
|
|
||||||
packages/desktop/release/*.deb
|
|
||||||
packages/desktop/release/latest*.yml
|
|
||||||
|
|||||||
Reference in New Issue
Block a user