From 8f2dff40bdb0084a7d6149e827ad42b9615ceecf Mon Sep 17 00:00:00 2001 From: Manuel Martin Date: Wed, 3 Apr 2024 11:56:50 +0200 Subject: [PATCH] Add Darwin support for publishing --- .github/workflows/publish.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f342a33..a9d988e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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/action-nodejs-package-info@v1.1 + - 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