Skip to content

Add or update the Azure App Service build and deployment workflow config #70

Add or update the Azure App Service build and deployment workflow config

Add or update the Azure App Service build and deployment workflow config #70

# Docs for the Azure Web Apps Deploy action: https://github.com/azure/functions-action
# More GitHub Actions for Azure: https://github.com/Azure/actions
name: Build and deploy Powershell project to Azure Function App - cipp5ddgz-proc
on:
push:
branches:
- master
workflow_dispatch:
env:
AZURE_FUNCTIONAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root
jobs:
deploy:
runs-on: windows-latest
permissions:
id-token: write #This is required for requesting the JWT
contents: read #This is required for actions/checkout
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@v4
- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_41F722357360491DBBD3EE7441B28EAE }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_E865165853DC42D790E3DE39D363A41F }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_77E3497F0E5C46F39D80C39C3C1DD8B6 }}
- name: 'Run Azure Functions Action'
uses: Azure/functions-action@v1
id: fa
with:
app-name: 'cipp5ddgz-proc'
slot-name: 'Production'
package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}