-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (71 loc) · 2.3 KB
/
editor-artifacts.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Make Artifacts
on:
workflow_dispatch:
inputs:
version:
description: 'Version string for this release, excluding "v" prefix'
required: true
snapshot-build:
description: 'This release is a work in progress'
required: true
default: 'true'
jobs:
artifacts-win:
name: Windows Artifacts
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Produce MSI installer
run: gradlew :app:msi -PbuildVersion=${{github.event.inputs.version}} -PsnapshotBuild=${{github.event.inputs.snapshot-build}}
shell: cmd
- name: Upload artifacts
if: success()
uses: actions/upload-artifact@v2
with:
name: windows-artifacts
path: build/app/artifacts/*
artifacts-mac:
name: macOS Artifacts
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Produce app bundle
run: ./gradlew :app:dmg -PbuildVersion=${{github.event.inputs.version}} -PsnapshotBuild=${{github.event.inputs.snapshot-build}}
- name: Upload artifacts
if: success()
uses: actions/upload-artifact@v2
with:
name: mac-artifacts
path: build/app/artifacts/*
artifacts-linux:
name: Linux Artifacts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Produce DEB package
run: ./gradlew :app:deb -PbuildVersion=${{github.event.inputs.version}}
-PsnapshotBuild=${{github.event.inputs.snapshot-build}}
- name: Produce RPM package
run: ./gradlew :app:rpm -PbuildVersion=${{github.event.inputs.version}} -PsnapshotBuild=${{github.event.inputs.snapshot-build}}
- name: Upload artifacts
if: success()
uses: actions/upload-artifact@v2
with:
name: linux-artifacts
path: build/app/artifacts/*