Skip to content

chore: github release workflow #1

chore: github release workflow

chore: github release workflow #1

Workflow file for this run

name: Build & Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- run: npx electron-forge make
- name: Upload Windows artifacts
uses: actions/upload-artifact@v4
with:
name: windows-build
path: out/make/**/*.zip
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- name: Install Linux build deps
run: sudo apt-get update && sudo apt-get install -y dpkg fakeroot
- run: npx electron-forge make
- name: Upload Linux artifacts
uses: actions/upload-artifact@v4
with:
name: linux-build
path: |
out/make/**/*.deb
out/make/**/*.zip
release:
needs: [build-windows, build-linux]
runs-on: ubuntu-latest
steps:
- name: Download Windows artifacts
uses: actions/download-artifact@v4
with:
name: windows-build
path: artifacts/windows
- name: Download Linux artifacts
uses: actions/download-artifact@v4
with:
name: linux-build
path: artifacts/linux
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
draft: true
generate_release_notes: true
files: |
artifacts/**/*.zip
artifacts/**/*.deb