File tree 1 file changed +45
-0
lines changed
1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Docs for the Azure Web Apps Deploy action: https://github.com/azure/functions-action
2
+ # More GitHub Actions for Azure: https://github.com/Azure/actions
3
+
4
+ name : Build and deploy dotnet core project to Azure Function App - datasource-functions-linux-net9
5
+
6
+ on :
7
+ push :
8
+ branches :
9
+ - master
10
+ workflow_dispatch :
11
+
12
+ env :
13
+ AZURE_FUNCTIONAPP_PACKAGE_PATH : ' .' # set this to the path to your web app project, defaults to the repository root
14
+ DOTNET_VERSION : ' 9.0' # set this to the dotnet version to use
15
+
16
+ jobs :
17
+ build-and-deploy :
18
+ runs-on : ubuntu-latest
19
+
20
+ steps :
21
+ - name : ' Checkout GitHub Action'
22
+ uses : actions/checkout@v4
23
+
24
+ - name : Setup DotNet ${{ env.DOTNET_VERSION }} Environment
25
+ uses : actions/setup-dotnet@v1
26
+ with :
27
+ dotnet-version : ${{ env.DOTNET_VERSION }}
28
+
29
+ - name : ' Resolve Project Dependencies Using Dotnet'
30
+ shell : bash
31
+ run : |
32
+ pushd './${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}'
33
+ dotnet build --configuration Release --output ./output
34
+ popd
35
+
36
+ - name : ' Run Azure Functions Action'
37
+ uses : Azure/functions-action@v1
38
+ id : fa
39
+ with :
40
+ app-name : ' datasource-functions-linux-net9'
41
+ slot-name : ' Production'
42
+ package : ' ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}/output'
43
+ publish-profile : ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_E623F929BAB146A5BEEB08ACBF7B3541 }}
44
+ sku : ' flexconsumption'
45
+
You can’t perform that action at this time.
0 commit comments