-
Notifications
You must be signed in to change notification settings - Fork 13
52 lines (39 loc) · 1.54 KB
/
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
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Release
on:
workflow_dispatch:
inputs:
version:
description: 'Release Version'
required: true
jobs:
release:
runs-on: ubuntu-latest
container: eclipse-temurin:17-jdk
steps:
- uses: actions/checkout@v3
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run Checks
run: ./gradlew --stacktrace -PjavafxPlatform=linux
- name: Build Windows Files
run: |
./gradlew -Pversion="${{ github.event.inputs.version }}" -PjavafxPlatform=win --stacktrace :ice-adapter:shadowJar
- name: Build Linux Files
run: |
./gradlew -Pversion="${{ github.event.inputs.version }}" -PjavafxPlatform=linux --stacktrace :ice-adapter:shadowJar
- name: Build No-JavaFX Files
run: |
./gradlew -Pversion="${{ github.event.inputs.version }}" -PjavafxPlatform=linux -PjavafxClasspath=compileOnly --stacktrace :ice-adapter:shadowJar
- name: Create Draft Release
id: create_release
uses: ncipollo/release-action@v1
with:
commit: ${{ github.sha }}
tag: ${{ github.event.inputs.version }}
draft: true
prerelease: true
generateReleaseNotes: true
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: ice-adapter/build/libs/faf-ice-adapter-*.jar