Merge pull request #1508 from azusa/add-jdk-distribution

Add env variable to set the Java distribution to use
This commit is contained in:
Sampark Sharma
2022-04-04 13:04:59 +05:30
committed by GitHub
+2
View File
@@ -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@v3.0.0
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.DISTRIBUTION }}
cache: 'maven'
- name: Build with Maven