Skip to content

Bump com.azure:azure-identity from 1.12.1 to 1.12.2 in /FunctionApp (… #96

Bump com.azure:azure-identity from 1.12.1 to 1.12.2 in /FunctionApp (…

Bump com.azure:azure-identity from 1.12.1 to 1.12.2 in /FunctionApp (… #96

name: Azure Function App Deployment
on:
push:
branches:
- main
paths:
- 'FunctionApp/**'
workflow_dispatch:
env:
AZURE_FUNCTIONAPP_NAME: restpdfformfiller # set this to your function app name on Azure
PACKAGE_DIRECTORY: 'FunctionApp' # set this to the directory which contains pom.xml file
JAVA_VERSION: '17' # set this to the java version to use
jobs:
deploy-and-submit-dependencies:
runs-on: windows-latest
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@v4
- name: Setup Java Sdk ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v4
with:
distribution: 'microsoft'
java-version: ${{ env.JAVA_VERSION }}
cache: maven
- name: 'Restore Project Dependencies Using Mvn'
shell: pwsh
run: |
pushd './${{ env.PACKAGE_DIRECTORY }}'
mvn clean package
popd
- name: 'Run Azure Functions Action'
uses: Azure/functions-action@v1
id: fa
with:
app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }}
slot-name: 'dev'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_2809551214454B81BB4D28673CCAEE70 }}
package: ${{ env.PACKAGE_DIRECTORY }}
respect-pom-xml: true
# Generate GitHub Maven Dependency Tree
# https://github.com/marketplace/actions/maven-dependency-tree-dependency-submission
- name: Submit Dependency Snapshot
uses: advanced-security/maven-dependency-submission-action@v4
with:
directory: './${{ env.PACKAGE_DIRECTORY }}'