-
Notifications
You must be signed in to change notification settings - Fork 83
48 lines (39 loc) · 1.08 KB
/
Copy pathrelease.yml
File metadata and controls
48 lines (39 loc) · 1.08 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
name: Release
on:
push:
tags:
- '[0-9]*'
jobs:
build:
strategy:
matrix:
os:
- windows-latest
- macos-latest
- ubuntu-latest
runs-on: ${{ matrix.os }}
# necessary for uploading artifacts
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: gradle/wrapper-validation-action@v1
if: matrix.os == 'ubuntu-latest'
- name: Setup Java
uses: actions/setup-java@v3
with:
java-version: 19
distribution: liberica
java-package: jdk+fx
cache: gradle
- name: Build with Gradle
# --no-daemon is necessary on Windows otherwise caching Gradle would fail with:
# tar.exe: Couldn't open ~/.gradle/caches/modules-2/modules-2.lock: Permission denied
run: ./gradlew assembleDist --no-daemon
- name: Upload artifacts
uses: softprops/action-gh-release@v1
if: startsWith( github.ref, 'refs/tags/' )
with:
draft: true
files: |
build/distributions/*