Skip to content

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

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

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

# 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: ubuntu-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_BE9ABF6EFB084502A5F153DE4C8AE96D }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_3F70320019F84FDE823F2ADB88C9840C }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_B431A9B0274846BAB1A9CCD1A382B04C }}
- 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 }}