From 405b17bf83241b45ff665c61daf0bdc28ae7c7ff Mon Sep 17 00:00:00 2001 From: JovannMC Date: Sat, 16 Nov 2024 13:41:07 +0300 Subject: [PATCH] add workflow for macos --- .github/workflows/build-mac.yml | 36 +++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/build-mac.yml diff --git a/.github/workflows/build-mac.yml b/.github/workflows/build-mac.yml new file mode 100644 index 0000000..73fd2f6 --- /dev/null +++ b/.github/workflows/build-mac.yml @@ -0,0 +1,36 @@ +name: Build application (macOS) + +on: + push: + branches: + - main + paths: + - ".github/workflows/build-mac.yml" + - package.json + workflow_dispatch: + create: + +jobs: + build: + runs-on: macos-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: "20" + + - name: Install Node.js dependencies + run: npm install + + - name: Build the application + run: npm run build + + - name: Archive build artifacts for macOS + uses: actions/upload-artifact@v3 + with: + name: build-artifacts-macos + path: build/*darwin* \ No newline at end of file