FreeDATA/.github/workflows/build.yml

38 lines
896 B
YAML
Raw Normal View History

2021-08-08 15:29:56 +00:00
name: Build/release
on: push
2021-08-08 15:48:38 +00:00
2021-08-08 16:07:08 +00:00
defaults:
run:
working-directory: ./gui
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:
os: [macos-latest, ubuntu-latest, windows-latest]
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-08 15:36:01 +00:00
node-version: 12
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') }}