Add Linux build support

This commit is contained in:
konradmb
2020-11-30 16:21:36 +01:00
parent 254d03653b
commit adc1679c34
2 changed files with 19 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os: [macos-latest, windows-latest]
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- name: Check out Git repository
@@ -26,6 +26,7 @@ jobs:
uses: samuelmeuli/action-electron-builder@v1
with:
skip_build: true
if: contains(['Windows', 'macOS'], runner.os)
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.github_token }}
@@ -38,3 +39,18 @@ jobs:
# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
- name: Build/release Linux Electron app
uses: samuelmeuli/action-electron-builder@v1
with:
skip_build: true
if: contains(['Linux'], runner.os)
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.github_token }}
args: "--linux appimage --ia32 --x64"
# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/v') }}