2021-08-08 15:29:56 +00:00
|
|
|
name: Build/release
|
|
|
|
|
|
|
|
on: push
|
2021-08-08 15:48:38 +00:00
|
|
|
|
2021-08-08 15:29:56 +00:00
|
|
|
jobs:
|
2021-08-08 16:05:37 +00:00
|
|
|
|
2021-08-08 15:55:46 +00:00
|
|
|
|
2021-08-08 15:29:56 +00:00
|
|
|
release:
|
|
|
|
runs-on: ${{ matrix.os }}
|
2021-08-08 16:07:08 +00:00
|
|
|
|
2021-08-08 16:05:37 +00:00
|
|
|
|
2021-08-08 15:29:56 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-08-10 17:09:38 +00:00
|
|
|
os: [ubuntu-latest, windows-latest]
|
|
|
|
package_manager: [npm]
|
2021-08-10 18:12:32 +00:00
|
|
|
package_root: ["test/"]
|
2021-08-10 17:08:02 +00:00
|
|
|
|
2021-08-08 15:29:56 +00:00
|
|
|
steps:
|
|
|
|
- name: Check out Git repository
|
2021-08-08 15:36:01 +00:00
|
|
|
uses: actions/checkout@v2
|
2021-08-08 15:29:56 +00:00
|
|
|
|
|
|
|
- name: Install Node.js, NPM and Yarn
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
2021-08-10 16:53:20 +00:00
|
|
|
node-version: 14
|
2021-08-08 15:29:56 +00:00
|
|
|
|
2021-08-10 17:08:02 +00:00
|
|
|
- name: Install test app dependencies
|
|
|
|
run: |
|
|
|
|
cd ${{ matrix.package_root }}
|
|
|
|
${{ matrix.package_manager }} install
|
|
|
|
|
|
|
|
|
2021-08-08 15:29:56 +00:00
|
|
|
- name: Build/release Electron app
|
|
|
|
uses: samuelmeuli/action-electron-builder@v1
|
|
|
|
with:
|
|
|
|
# GitHub token, automatically provided to the action
|
|
|
|
# (No need to define this secret in the repo settings)
|
|
|
|
github_token: ${{ secrets.github_token }}
|
|
|
|
|
|
|
|
# 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') }}
|