From c69548aa6463c6f635f978514ae9f4fad8ad90ac Mon Sep 17 00:00:00 2001 From: Forbirdden <102984166+Forbirdden@users.noreply.github.com> Date: Thu, 17 Apr 2025 16:24:39 +0500 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 41 ++++++++++++++++++++++--------------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4b8b523..85031cb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Build/release +name: Release on: push: @@ -6,28 +6,35 @@ on: - v* pull_request: branches: - - electron-v3 + - main workflow_dispatch: jobs: - release: + build: runs-on: ${{ matrix.os }} - strategy: matrix: - os: [linux-latest, windows-latest] - + os: [ubuntu-latest, macos-latest, windows-latest] + steps: - - name: Check out Git repository - uses: actions/checkout@v4 + - name: Checkout code + uses: actions/checkout@v4 - - name: Install Node.js - uses: actions/setup-node@v4 - with: - node-version: '20.x' + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20.x - - name: Build/release Electron app - uses: samuelmeuli/action-electron-builder@v1.6.0 - with: - github_token: ${{ secrets.github_token }} - release: ${{ startsWith(github.ref, 'refs/tags/v') }} + - name: Install dependencies + run: npm ci + + - name: Build app + run: npm run build + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: builds-${{ matrix.os }} + path: dist/*