Update build_electron_app.yml #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Electron App | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
# Define your platforms here | |
platform: [osx64, win32, linuxarm64, linuxamd64] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: yarn install | |
- name: Compile | |
run: DEBUG=electron-forge:* yarn make:${{ matrix.platform }} | |
env: | |
CI: true | |
# Build for each platform | |
- name: Build Electron App for ${{ matrix.platform }} | |
run: yarn make:${{ matrix.platform }} | |
env: | |
CI: true | |
# Upload artifacts | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: electron-artifacts-${{ matrix.platform }} | |
path: out/make/**/* |