name: Reusable Workflow - Azure App Service Deploy
on:
workflow_call:
inputs:
AZURE_WEBAPP_PACKAGE_PATH:
required: true
type: string
AZURE_WEBAPP_NAME:
required: true
type: string
secrets:
AZURE_SERVICE_PRINCIPAL:
required: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Download artifact from build job
uses: actions/download-artifact@v4
with:
name: webapp
path: $
- name: Azure Login
uses: azure/login@v2
with:
creds: $
- name: Deploy to Azure WebApp
uses: azure/webapps-deploy@v2
with:
app-name: $
package: $