1010 workflow_dispatch :
1111
1212env :
13- AZURE_FUNCTIONAPP_PACKAGE_PATH : ' .' # set this to the path to your web app project, defaults to the repository root
14- DOTNET_VERSION : ' 8' # set this to the dotnet version to use
13+ AZURE_FUNCTIONAPP_PACKAGE_PATH : ' ./api ' # set this to the path to your web app project, defaults to the repository root
14+ DOTNET_VERSION : ' 8.* ' # set this to the dotnet version to use
1515
1616jobs :
1717 build-and-deploy :
1818 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
19+ permissions :
20+ id-token : write # This is required for requesting the JWT
21+ contents : read # This is required for actions/checkout
2222
2323 steps :
2424 - name : ' Checkout GitHub Action'
@@ -35,13 +35,13 @@ jobs:
3535 pushd './${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}'
3636 dotnet build --configuration Release --output ./output
3737 popd
38-
39- - name : Login to Azure
40- uses : azure/login@v2
41- with :
42- client-id : ${{ secrets.AZUREAPPSERVICE_CLIENTID_CA311494B8D24604884567E2DA8BDF00 }}
43- tenant-id : ${{ secrets.AZUREAPPSERVICE_TENANTID_7B61ED83DE094DFC91B475E825AA4215 }}
44- subscription-id : ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_B02AF30635234AF7BC6D401CF508FE14 }}
38+
39+ - name : Login to Azure
40+ uses : azure/login@v2
41+ with :
42+ client-id : ${{ secrets.AZUREAPPSERVICE_CLIENTID_CA311494B8D24604884567E2DA8BDF00 }}
43+ tenant-id : ${{ secrets.AZUREAPPSERVICE_TENANTID_7B61ED83DE094DFC91B475E825AA4215 }}
44+ subscription-id : ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_B02AF30635234AF7BC6D401CF508FE14 }}
4545
4646 - name : ' Run Azure Functions Action'
4747 uses : Azure/functions-action@v1
5050 app-name : ' api-backend-x7wgzy'
5151 slot-name : ' Production'
5252 package : ' ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}/output'
53-
53+
54+
0 commit comments