Skip to content

Release

Release #30

Workflow file for this run

# 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