-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 1.31 KB
/
main_restpdfformfiller(dev).yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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: '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: '.'
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@v3
with:
directory: './${{ env.PACKAGE_DIRECTORY }}'