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