Skip to content

Commit

Permalink
Add Darwin support for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Apr 3, 2024
1 parent 049a806 commit 8f2dff4
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,32 @@ jobs:
- name: Make
run: npm run make -- --platform linux
- name: Publish
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: "hubs-backup-tool-linux-x64-${{ steps.package.outputs.version }}.zip"
path: out/make/zip/linux/x64
if-no-files-found: error

build-darwin:
runs-on: macos-13
timeout-minutes: 20
steps:
- name: Configure
uses: actions/setup-node@v4
with:
node-version: 20
- name: Checkout
uses: actions/checkout@v3
- name: Get package info
id: package
uses: codex-team/[email protected]
- name: Build
run: npm ci
- name: Make
run: npm run make -- --platform darwin
- name: Publish
uses: actions/upload-artifact@v3
with:
name: "hubs-backup-tool-darwin-x64-${{ steps.package.outputs.version }}.zip"
path: out/make/zip/darwin/x64
if-no-files-found: error

0 comments on commit 8f2dff4

Please sign in to comment.