Skip to content

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

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

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

# 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 - TestForSubMover
on:
push:
branches:
- main
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
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@v4
- name: Login to Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_99DB5D1D14964AFA8C0536C366B17308 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_45ABE2B9DC084F9FB2C2A58E3E3D04D1 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_DF03708154FB45C08669CB7BA489F7EB }}
- name: 'Run Azure Functions Action'
uses: Azure/functions-action@v1
id: fa
with:
app-name: 'TestForSubMover'
slot-name: 'Production'
package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}