From 7bae9a7321b87e96c95d4d642746adb2ab3249c8 Mon Sep 17 00:00:00 2001 From: Forbirdden <102984166+Forbirdden@users.noreply.github.com> Date: Wed, 19 Mar 2025 14:59:23 +0500 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 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..4b8b523 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,33 @@ +name: Build/release + +on: + push: + tags: + - v* + pull_request: + branches: + - electron-v3 + workflow_dispatch: + +jobs: + release: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [linux-latest, windows-latest] + + steps: + - name: Check out Git repository + uses: actions/checkout@v4 + + - name: Install 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') }}