forked from thinreports/thinreports-basic-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (41 loc) · 1.06 KB
/
section-report-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
49
50
51
52
name: "[section-report] Build and release section-report"
on:
push:
tags:
- '*'
defaults:
run:
working-directory: section-report
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
include:
- os: macos-latest
package-ext: .dmg
- os: ubuntu-latest
package-ext: .AppImage
- os: windows-latest
package-ext: .exe
steps:
- uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 13
- name: Install npm packages
run: npm install
- name: Build package
run: npm run electron:build
- name: Prepare package
run: |
mkdir package
mv dist_electron/*${{ matrix.package-ext }} package/
- name: Release
uses: softprops/action-gh-release@v1
with:
files: "section-report/package/**"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}