Skip to content

1.0.1

1.0.1 #7

Workflow file for this run

# 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/blob/main/docs/advanced-usage.md#Publishing-using-gradle
name: Publish Release Package
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
env:
PLUGIN_NAME: dicom-edit-routing
PLUGIN_DIR: ${{ github.workspace }}
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
GRADLE_USER_HOME: ${{ github.workspace }}/.gradle
steps:
- uses: actions/checkout@v5
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
cache: gradle
- name: Print Gradle version
run: ./gradlew --version
- name: Build plugin
run: |
echo "Building plugin ${{ env.PLUGIN_NAME }}, located at ${{ env.PLUGIN_DIR }}. Using Gradle user home at ${{ env.GRADLE_USER_HOME }}"
./gradlew -p ${{ env.PLUGIN_DIR }} clean build
- name: Upload JAR to GitHub Release
uses: softprops/action-gh-release@v2
with:
files: build/libs/dicom-edit-routing-*.jar