Skip to content

Update main.yml

Update main.yml #3

Workflow file for this run

name: Build Electron App
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Install dependencies
run: npm install
- name: Build Electron app for Windows
run: npm run electron:build -- --win
env:
NODE_ENV: production
GH_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
with:
name: app-build
path: build/