Add env variable to set the Java distribution to use

This commit is contained in:
Hiroyuki Onaka
2022-03-28 19:39:18 +09:00
parent 46017054a3
commit 69cce6ad3a
+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@v2.3.1
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.DISTRIBUTION }}
cache: 'maven'
- name: Build with Maven