2022-09-29 17:39:09 +02:00
|
|
|
# name of your github action
|
|
|
|
name: CI
|
|
|
|
# this will help you specify where to run
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
# this is where the magic happens, each job happens in parallel btw
|
|
|
|
jobs:
|
|
|
|
linux:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-09-29 17:42:45 +02:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- uses: actions/setup-node@v3.5.0
|
2022-09-29 17:39:09 +02:00
|
|
|
with:
|
|
|
|
node-version: 16
|
2022-09-29 17:42:45 +02:00
|
|
|
|
2022-09-29 17:39:09 +02:00
|
|
|
- name: Install Modules and Publish build
|
|
|
|
run: |
|
2022-09-29 17:46:37 +02:00
|
|
|
sudo apt-get install flatpak -y
|
|
|
|
sudo apt-get install flatpak-builder -y
|
|
|
|
sudo apt-get install elfutils -y
|
|
|
|
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
|
|
|
sudo flatpak install flathub org.freedesktop.Platform/x86_64/20.08 org.freedesktop.Sdk/x86_64/20.08 org.electronjs.Electron2.BaseApp/x86_64/stable -y
|
2022-09-29 17:39:09 +02:00
|
|
|
npm install
|
2022-09-29 17:48:39 +02:00
|
|
|
GH_TOKEN=${{ secrets.GH_TOKEN }} && npm run publish-linux-app
|
2022-09-29 17:39:09 +02:00
|
|
|
|
|
|
|
macos:
|
|
|
|
runs-on: macOS-latest
|
|
|
|
steps:
|
2022-09-29 17:42:45 +02:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- uses: actions/setup-node@v3.5.0
|
2022-09-29 17:39:09 +02:00
|
|
|
with:
|
|
|
|
node-version: 16
|
2022-09-29 17:42:45 +02:00
|
|
|
|
2022-09-29 17:39:09 +02:00
|
|
|
- name: Install Modules and Publish build
|
|
|
|
run: |
|
|
|
|
npm install
|
2022-09-29 17:48:39 +02:00
|
|
|
GH_TOKEN=${{ secrets.GH_TOKEN }} && npm run publish-mac-app
|
2022-09-29 17:39:09 +02:00
|
|
|
|
|
|
|
windo:
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
2022-09-29 17:42:45 +02:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- uses: actions/setup-node@v3.5.0
|
2022-09-29 17:39:09 +02:00
|
|
|
with:
|
|
|
|
node-version: 16
|
2022-09-29 17:42:45 +02:00
|
|
|
|
2022-09-29 17:39:09 +02:00
|
|
|
- name: Install Modules and Publish build
|
|
|
|
run: |
|
|
|
|
npm install
|
2022-09-29 17:48:39 +02:00
|
|
|
GH_TOKEN=${{ secrets.GH_TOKEN }} && npm run publish-win-app
|