-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 942 Bytes
/
functions.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
name: Deploy-Azure-Functions
on:
push:
branches: [ master ]
paths: ['AzureFunctions/AutomateAnythingEverything.Functions/**']
env:
AZURE_FUNCTIONAPP_PACKAGE_PATH: 'AzureFunctions/AutomateAnythingEverything.Functions/'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v1.4.0
with:
dotnet-version: '3.1.300'
- name: 'Run dotnet build'
shell: bash
run: |
pushd './${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}'
dotnet build --configuration Release --output ./output
popd
- name: Azure Functions Action
uses: Azure/functions-action@v1.1.4
with:
app-name: fa-a3e-task-orchestrator-dev
package: '${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}output'
publish-profile: ${{ secrets.AZURE_FUNCTIONAPP_PUBLISH_PROFILE }}