Skip to content

Azure Function App Deployment #63

Azure Function App Deployment

Azure Function App Deployment #63

name: Azure Function App Deployment
on:
push:
branches:
- main
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
jobs:
changes:
uses: ./.github/workflows/filter-changes.yml
build:
needs: changes
if: ${{ github.event_name == 'workflow_dispatch' || needs.changes.outputs.function-app == 'true' }}
uses: ./.github/workflows/maven.yml
deploy-and-submit-dependencies:
needs: build
if: ${{ success() }}
runs-on: windows-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: RestPdfFormFiller-0.1.0.jar
path: target/RestPdfFormFiller-0.1.0.jar
- name: 'Run Azure Functions Action'
uses: Azure/functions-action@v1
id: fa
with:
app-name: 'restpdfformfiller'
slot-name: 'dev'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_2809551214454B81BB4D28673CCAEE70 }}
package: './target/RestPdfFormFiller-0.1.0.jar'
# 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@v3
with:
directory: './FunctionApp'