Skip to content

1.1.11

1.1.11 #17

Workflow file for this run

name: Electron Forge CI/CD
on:
push:
branches: [ main ]
tags:
- "*"
pull_request:
branches: [ main ]
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false
- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Package application
run: pnpm run package
- name: list files
run: ls -lah out
# - name: Run tests
# uses: coactions/setup-xvfb@v1
# with:
# run: pnpm test:e2e:raw
- name: Make distributable
if: success()
run: pnpm run make --skip-package
- name: Upload artifacts
if: success()
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-build
path: out/make/**/*
release:
permissions:
contents: write
discussions: write
needs: build-and-test
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
artifacts/**/*
name: Release ${{ github.ref }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}