Skip to content

Workflow file for this run

name: Build VoceChat App
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "20"
- name: Set Electron Mirror
run: |
echo "ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/" >> $GITHUB_ENV
echo "ELECTRON_BUILDER_BINARIES_MIRROR=https://npmmirror.com/mirrors/electron-builder-binaries/" >> $GITHUB_ENV
- name: Install dependencies
run: |
npm install
- name: Install Rollup for Linux
if: matrix.os == 'ubuntu-latest'
run: npm install @rollup/rollup-linux-x64-gnu
- name: Install Rollup for Windows
if: matrix.os == 'windows-latest'
run: npm install @rollup/rollup-win32-x64-msvc
- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
with:
github_token: ${{ secrets.github_token }}
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}-build
path: |
release/**/*.exe
release/**/*.dmg
release/**/*.AppImage
release/**/*.deb
release/**/*.rpm
if-no-files-found: error