Add env variable to set the Java distribution to use
This commit is contained in:
@@ -22,6 +22,7 @@ name: Build and deploy JAR app to Azure Web App
|
|||||||
env:
|
env:
|
||||||
AZURE_WEBAPP_NAME: your-app-name # set this to the name of your Azure Web App
|
AZURE_WEBAPP_NAME: your-app-name # set this to the name of your Azure Web App
|
||||||
JAVA_VERSION: '11' # set this to the Java version to use
|
JAVA_VERSION: '11' # set this to the Java version to use
|
||||||
|
DISTRIBUTION: zulu # set this to the Java distribution
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -40,6 +41,7 @@ jobs:
|
|||||||
uses: actions/[email protected]
|
uses: actions/[email protected]
|
||||||
with:
|
with:
|
||||||
java-version: ${{ env.JAVA_VERSION }}
|
java-version: ${{ env.JAVA_VERSION }}
|
||||||
|
distribution: ${{ env.DISTRIBUTION }}
|
||||||
cache: 'maven'
|
cache: 'maven'
|
||||||
|
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
|
|||||||
Reference in New Issue
Block a user