File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Expand file tree Collapse file tree 1 file changed +53
-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 - func-vsch-survey 
5+ 
6+ on :
7+   push :
8+     branches :
9+       - main 
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.x'   #  set this to the dotnet version to use
15+ 
16+ jobs :
17+   build-and-deploy :
18+     runs-on : ubuntu-latest 
19+     permissions :
20+       id-token : write  # This is required for requesting the JWT
21+       contents : read  # This is required for actions/checkout
22+ 
23+     steps :
24+       - name : ' Checkout GitHub Action' 
25+         uses : actions/checkout@v4 
26+ 
27+       - name : Setup DotNet ${{ env.DOTNET_VERSION }} Environment 
28+         uses : actions/setup-dotnet@v1 
29+         with :
30+           dotnet-version : ${{ env.DOTNET_VERSION }} 
31+ 
32+       - name : ' Resolve Project Dependencies Using Dotnet' 
33+         shell : bash 
34+         run : | 
35+           pushd './${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}' 
36+           dotnet build --configuration Release --output ./output 
37+           popd 
38+        
39+       - name : Login to Azure 
40+         uses : azure/login@v2 
41+         with :
42+           client-id : ${{ secrets.AZUREAPPSERVICE_CLIENTID_E3DA34DC49434B8898BD53596A13EE6C }} 
43+           tenant-id : ${{ secrets.AZUREAPPSERVICE_TENANTID_D1AEBD75E2084A8B98F3DBE38EDBA35F }} 
44+           subscription-id : ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_9AC2A16046EC485CAFF830B658E07CDF }} 
45+ 
46+       - name : ' Run Azure Functions Action' 
47+         uses : Azure/functions-action@v1 
48+         id : fa 
49+         with :
50+           app-name : ' func-vsch-survey' 
51+           slot-name : ' Production' 
52+           package : ' ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}/output' 
53+           
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments