Skip to content

Commit

Permalink
fixup! Add dmg + zip to artifact for macos build
Browse files Browse the repository at this point in the history
  • Loading branch information
FirelightFlagboy committed Sep 5, 2024
1 parent 3416aec commit 6ace6f6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/package-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ jobs:

- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # pin v4.4.0
with:
name: ${{ runner.os }}-${{ runner.arch }}-electron-app-linux-snap
name: linux-snap-${{ runner.arch }}-electron
path: |
Parsec_${{ steps.version.outputs.full }}_linux_*.snap
Parsec-SBOM-*.spdx.json
Expand All @@ -225,21 +225,21 @@ jobs:
raw_latest_file: latest.yml
extension: exe
os_alias: win
artifact_suffix: win-exe
artifact_tag: windows-exe
- name: 🍎 macOS
platform: macos
os: macos-12
raw_latest_file: latest-mac.yml
extension: "*" # Use wildcard to match dmg and zip extension
os_alias: mac
artifact_suffix: mac-dmg
artifact_tag: macos-dmg
- name: 🐧 AppImage 4 Linux
platform: linux
os: ubuntu-22.04
raw_latest_file: latest-linux.yml
os_alias: linux
extension: AppImage
artifact_suffix: linux-appimage
artifact_tag: linux-appimage
name: "${{matrix.name }}: ⚡ Package electron"
runs-on: ${{ matrix.os }}
timeout-minutes: 60
Expand Down Expand Up @@ -355,7 +355,7 @@ jobs:
tool: syft@0.84.0

- name: Generate SBOM
run: syft packages --config=.syft.yaml --output=spdx-json=client/electron/dist/Parsec-SBOM-Electron-${{ matrix.artifact_suffix }}.spdx.json .
run: syft packages --config=.syft.yaml --output=spdx-json=client/electron/dist/Parsec-SBOM-Electron-${{ matrix.artifact_tag }}.spdx.json .

- name: Debug dist folder
if: runner.debug || false
Expand Down Expand Up @@ -388,7 +388,7 @@ jobs:

- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # pin v4.4.0
with:
name: ${{ runner.os }}-${{ runner.arch }}-electron-app-${{ matrix.artifact_suffix }}
name: ${{ matrix.artifact_tag }}-${{ runner.arch }}-electron
path: |
client/electron/dist/${{ steps.build-info.outputs.app_file }}
client/electron/dist/${{ steps.build-info.outputs.app_file }}.blockmap
Expand All @@ -400,7 +400,7 @@ jobs:
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # pin v4.4.0
if: matrix.platform == 'windows'
with:
name: ${{ runner.os }}-${{ runner.arch }}-electron-app-${{ matrix.artifact_suffix }}-pre-built
name: ${{ matrix.artifact_tag }}-${{ runner.arch }}-electron-pre-built
path: |
client/electron/app
client/electron/build
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,19 +109,19 @@ jobs:
cp ${CP_ARGS} artifacts/Windows-X64-wheel/requirements.txt release-files/python-win-requirements.txt
# Snapcraft
cp ${CP_ARGS} artifacts/Linux-X64-electron-app-linux-snap/Parsec_${{ needs.version.outputs.full }}_linux_*.snap release-files
cp ${CP_ARGS} artifacts/linux-snap-X64-electron/Parsec_${{ needs.version.outputs.full }}_linux_*.snap release-files
# AppImage
cp ${CP_ARGS} artifacts/Linux-X64-electron-app-linux-appimage/Parsec_${{ needs.version.outputs.full }}_linux_*.AppImage release-files
cp ${CP_ARGS} artifacts/Linux-X64-electron-app-linux-appimage/latest-linux-*.yml release-files
cp ${CP_ARGS} artifacts/linux-appimage-X64-electron/Parsec_${{ needs.version.outputs.full }}_linux_*.AppImage release-files
cp ${CP_ARGS} artifacts/linux-appimage-X64-electron/latest-linux-*.yml release-files
# DMG & ZIP
cp ${CP_ARGS} artifacts/macOS-X64-electron-app-mac-dmg/Parsec_${{ needs.version.outputs.full }}_mac_*.unsigned{.dmg,.zip}{,.blockmap} release-files
cp ${CP_ARGS} artifacts/macOS-X64-electron-app-mac-dmg/latest-mac-*.yml release-files
cp ${CP_ARGS} artifacts/macos-dmg-X64-electron/Parsec_${{ needs.version.outputs.full }}_mac_*.unsigned{.dmg,.zip}{,.blockmap} release-files
cp ${CP_ARGS} artifacts/macos-dmg-X64-electron/latest-mac-*.yml release-files
# EXE
cp ${CP_ARGS} artifacts/Windows-X64-electron-app-win-exe/Parsec_${{ needs.version.outputs.full }}_win_*.unsigned.exe{,.blockmap} release-files
cp ${CP_ARGS} artifacts/Windows-X64-electron-app-win-exe/latest-win-*.yml release-files
cp ${CP_ARGS} artifacts/windows-exe-X64-electron/Parsec_${{ needs.version.outputs.full }}_win_*.unsigned.exe{,.blockmap} release-files
cp ${CP_ARGS} artifacts/windows-exe-X64-electron/latest-win-*.yml release-files
# CLI
cp ${CP_ARGS} artifacts/Linux-X64-cli/parsec-cli_${{ needs.version.outputs.full }}_linux_* release-files
Expand Down

0 comments on commit 6ace6f6

Please sign in to comment.