-
Notifications
You must be signed in to change notification settings - Fork 25
45 lines (42 loc) · 1.22 KB
/
Copy pathrelease.yml
File metadata and controls
45 lines (42 loc) · 1.22 KB
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
name: Electron Build
on:
release:
types: [published]
jobs:
platform_release:
defaults:
run:
working-directory: client
name: Build all packages for multiple platforms
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
config:
- os: windows-latest
- os: macos-latest
- os: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
# "ref" specifies the branch to check out.
# "github.event.release.target_commitish" is a global variable and specifies the branch the release targeted
ref: ${{ github.event.release.target_commitish }}
- name: Use Node 24
uses: actions/setup-node@v3
with:
node-version: '24.15.0'
cache: npm
cache-dependency-path: client/package-lock.json
- run: npm ci
- run: npm run lint
- name: Unit tests
run: npm test
if: ${{ matrix.config.os != 'windows-latest' }}
- run: npm run build:electron
# push the version changes to GitHub
- name: Upload Release Asset
uses: alexellis/upload-assets@0.2.3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_paths: '["./client/dist_electron/DIVE-Desktop*"]'