Skip to content

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

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

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

# 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-usertasks
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_D98F621BE3C44AACA980F294A46A5403 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_ABDB35754E8A4C4CB1FE4DD4B5A32E2B }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_ED7DB6D0FF3D40FCA0C896B626766A69 }}
- name: 'Run Azure Functions Action'
uses: Azure/functions-action@v1
id: fa
with:
app-name: 'cipp5ddgz-usertasks'
slot-name: 'Production'
package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}