chore: Github Actions

This commit is contained in:
hello8693 2024-08-27 15:35:31 +08:00
parent 1e787c93fb
commit 3dbf912ea4

32
.github/actions/build.yaml vendored Normal file
View File

@ -0,0 +1,32 @@
name: Build and Package Electron App
on: [push]
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn install
- name: Build and package for Windows
run: yarn build:win
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ExamShowboard-Windows
path: dist/*.exe