From b5712985dbe77148b7abc65bd1937e44200ea3b5 Mon Sep 17 00:00:00 2001 From: nicwands Date: Mon, 16 Feb 2026 14:49:11 -0500 Subject: [PATCH] add gh actions build --- .github/workflows/build.yml | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..fe9a716 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,47 @@ +name: Build Electron App + +on: + push: + branches: + - main + # pull_request: + # release: + # types: [created] + +jobs: + build: + strategy: + fail-fast: false + matrix: + include: + - os: windows-latest + script: build:win + - os: macos-latest + script: build:mac + - os: ubuntu-latest + script: build:linux + + runs-on: ${{ matrix.os }} + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Run platform build + run: npm run ${{ matrix.script }} + + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: ${{ matrix.os }}-build + path: | + dist/**