-
Notifications
You must be signed in to change notification settings - Fork 16
48 lines (40 loc) · 1.17 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Build/Release
on:
workflow_dispatch:
release:
types: [published]
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: macos-latest
config: electron-builder.yml
- os: ubuntu-latest
config: electron-builder.yml
- os: windows-latest
config: electron-builder.yml
- os: windows-latest
config: electron-builder-aio.yml
downloadDeps: true
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v3
with:
node-version: 16
- name: Download Octave/Dynare binaries
if: matrix.downloadDeps
run: npm i && node .scripts/download-deps.js
- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1.6.0
with:
github_token: ${{ secrets.github_token }}
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
args: "-c ${{ matrix.config }}"