Master GitHub Actions with hands-on labs and exercises. Learn how to automate workflows, run tests, deploy applications, and more using GitHub's powerful automation platform. This repository has everything you need to get started with continuous integration and continuous deployment.
name: Reusable Workflow Azure Web App 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: $