Skip to content

feat(06): desktop application via electron #15

feat(06): desktop application via electron

feat(06): desktop application via electron #15

Workflow file for this run

name: electron
on:
push:
tags:
- v*
permissions:
contents: write
defaults:
run:
working-directory: frontend
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
include:
- os: ubuntu-latest
output-file: |
./frontend/electron/*.AppImage
./frontend/electron/*.deb
./frontend/electron/*.rpm
./frontend/electron/*.tar.gz
- os: windows-latest
output-file: |
./frontend/electron/*.exe
- os: macos-latest
output-file: |
./frontend/electron/*.dmg
./frontend/electron/*.zip
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
cache-dependency-path: ./frontend/yarn.lock
- name: Install dependencies
run: |
yarn install --frozen-lockfile
yarn add electron electron-builder --dev
- name: Build
run: |
yarn build
yarn electron:build
- name: Upload executables for publish
uses: actions/upload-artifact@v4
with:
name: my-artifact-${{ matrix.os }}
path: ${{ matrix.output-file }}
release:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download executables
uses: actions/download-artifact@v4
with:
pattern: my-artifact-*
merge-multiple: true
path: dist
- name: Deploy to GitHub Releases
uses: softprops/action-gh-release@v2
with:
files: ./dist/*
name: Release ${{ github.ref_name }}
generate_release_notes: true
prerelease: true