diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index cd9d3f0..f27ddf3 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -16,11 +16,18 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up JDK 8 + - name: Set up JDK 11 uses: actions/setup-java@v2 with: - java-version: '8' + java-version: '11' distribution: 'zulu' cache: gradle + - name: Create local.properties + run: touch local.properties - name: Build with Gradle run: ./gradlew build + - name: Upload ZIP + uses: actions/upload-artifact@v2 + with: + name: ZIP + path: brouter-server/build/distributions/brouter-*.zip diff --git a/brouter-server/build.gradle b/brouter-server/build.gradle index e5e4aa2..1cc9361 100644 --- a/brouter-server/build.gradle +++ b/brouter-server/build.gradle @@ -30,7 +30,8 @@ application { } distZip { - archiveFileName = 'brouter-' + project.version + '.zip' + dependsOn fatJar + archiveFileName = 'brouter-' + project.version + '.zip' } distributions {