This repository was archived by the owner on Jan 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 377
64 lines (56 loc) · 1.92 KB
/
release.yml
File metadata and controls
64 lines (56 loc) · 1.92 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java#publishing-using-gradle
name: Release
on:
push:
tags:
- 'v*'
jobs:
jpackage:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-latest, macos-latest, ubuntu-latest ]
steps:
- uses: actions/checkout@v3
- name: Set Up Java18
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '18'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Release-win-zip
run: ./gradlew app:releaseWinZip
- name: Release-win
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') && startsWith(matrix.os, 'windows')
with:
files: |
app/build/jpackage/*.msi
app/build/jpackage/*.zip
draft: true
fail_on_unmatched_files: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release-mac
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') && startsWith(matrix.os, 'macos')
with:
files: |
app/build/jpackage/*.dmg
draft: true
fail_on_unmatched_files: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release-ubuntu
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') && startsWith(matrix.os, 'ubuntu')
with:
files: |
app/build/jpackage/*.rpm
app/build/jpackage/*.deb
draft: true
fail_on_unmatched_files: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}