Skip to content

Merge pull request #18 from foundersandcoders/fix/apply-oet-to-bootca… #7

Merge pull request #18 from foundersandcoders/fix/apply-oet-to-bootca…

Merge pull request #18 from foundersandcoders/fix/apply-oet-to-bootca… #7

Workflow file for this run

name: Build and Release
on:
push:
branches: [main, feat/build-package]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build:
strategy:
matrix:
os: [macos-latest, windows-latest]
include:
- os: macos-latest
platform: darwin
- os: windows-latest
platform: win32
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Build Electron app
run: npm run make
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.platform }}-build
path: out/make/**/*
release:
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
- name: Create Release
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ github.run_number }}
name: Release ${{ github.run_number }}
draft: true
files: |
**/*.zip
**/*.exe
**/*.dmg
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}