Skip to content

Merge pull request #14 from michasdev/feat/deploy #3

Merge pull request #14 from michasdev/feat/deploy

Merge pull request #14 from michasdev/feat/deploy #3

Workflow file for this run

name: Build/Release Desktop
on:
push:
branches:
- main
tags:
- 'v*'
paths:
- 'apps/desktop/**'
- '.github/workflows/desktop-build.yml'
- 'apps/desktop/electron-builder.yml'
workflow_dispatch:
jobs:
release:
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
cache: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22.12
cache: 'npm'
cache-dependency-path: apps/desktop/package-lock.json
- name: Install dependencies
working-directory: apps/desktop
run: npm ci
- name: Build Go CLI binaries
working-directory: apps/desktop
run: npm run build:cli
- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
package_root: apps/desktop
skip_install: true
# Using default config location in apps/desktop/electron-builder.yml