Skip to content

Initialize Azure Functions project structure with necessary configura… #2

Initialize Azure Functions project structure with necessary configura…

Initialize Azure Functions project structure with necessary configura… #2

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