Skip to content

Commit

Permalink
ci: upload artifacts, build macos universal
Browse files Browse the repository at this point in the history
  • Loading branch information
BluDood committed Nov 15, 2024
1 parent 0aa2a80 commit 7d29d99
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ jobs:
- name: Build the project
run: npm run build:win

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: glancething-windows-artifact
path: ./dist/glancething-*-setup.exe

- name: Upload the zip to the GitHub Release
if: github.event_name == 'release' && github.event.action == 'created'
uses: softprops/action-gh-release@v2
Expand All @@ -57,6 +63,12 @@ jobs:
- name: Build the project
run: npm run build:mac

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: glancething-macos-artifact
path: ./dist/glancething-*.dmg

- name: Upload the zip to the GitHub Release
if: github.event_name == 'release' && github.event.action == 'created'
uses: softprops/action-gh-release@v2
Expand Down Expand Up @@ -88,6 +100,12 @@ jobs:
run: zip -r /tmp/glancething-client-${GITHUB_REF_NAME}.zip ./*
working-directory: ./client/dist

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: glancething-client-artifact
path: /tmp/glancething-client-*.zip

- name: Upload the zip to the GitHub Release
if: github.event_name == 'release' && github.event.action == 'created'
uses: softprops/action-gh-release@v2
Expand Down
3 changes: 3 additions & 0 deletions electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ nsis:
uninstallDisplayName: ${productName}
createDesktopShortcut: always
mac:
target:
- target: dmg
arch: universal
entitlementsInherit: build/entitlements.mac.plist
extendInfo:
- NSCameraUsageDescription: Application requests access to the device's camera.
Expand Down

0 comments on commit 7d29d99

Please sign in to comment.