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:
|
||||
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
|
||||
DISTRIBUTION: zulu # set this to the Java distribution
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -40,6 +41,7 @@ jobs:
|
||||
uses: actions/setup-java@v2.3.1
|
||||
with:
|
||||
java-version: ${{ env.JAVA_VERSION }}
|
||||
distribution: ${{ env.DISTRIBUTION }}
|
||||
cache: 'maven'
|
||||
|
||||
- name: Build with Maven
|
||||
|
||||
Reference in New Issue
Block a user