Harmonize GitHub Actions structure

This commit harmonizes the order of elements, in particular the settings
of the deploy step. It also adds the ability to build against a
different distribution than liberica.

Closes gh-41457
This commit is contained in:
Stéphane Nicoll
2024-07-12 09:11:41 +02:00
parent 8617c981cf
commit fc5fc7f5c3
4 changed files with 16 additions and 10 deletions

View File

@@ -5,13 +5,17 @@ inputs:
required: false
default: '17'
description: 'The Java version to compile and test with'
java-distribution:
required: false
default: 'liberica'
description: 'The Java distribution to use for the build'
java-toolchain:
required: false
default: false
default: 'false'
description: 'Whether a Java toolchain should be used'
publish:
required: false
default: false
default: 'false'
description: 'Whether to publish artifacts ready for deployment to Artifactory'
develocity-access-key:
required: false
@@ -31,6 +35,7 @@ runs:
with:
develocity-access-key: ${{ inputs.develocity-access-key }}
java-version: ${{ inputs.java-version }}
java-distribution: ${{ inputs.java-distribution }}
java-toolchain: ${{ inputs.java-toolchain }}
- name: Build
id: build