Automates the build and deployment of Azure web and function apps. In open PRs, seperate staging deployments are automatically made.
Supports 2 repository structures:
- Monorepo: with web apps in the
appsdir, and function apps in thefunc-appsdir. - Single web app: a standard single web app repo, with build output expected to be in
./dist
More documentation to come
See the example recommended workflow in workflow-template.yml
- Linux must be used
- The action will install Azure CLI
- Action does not handle installation of dependencies - they must be installed in a step before the action is run
clientId,tenantId,clientSecret,subscriptionIdare required and formatted as JSONoutputDiris optional and represents the location of your output directory with default set to./dist.enableCorsApiIdsis optional and represents an array of Function Apps resourceIds that need to enable cors for the staging storage accounts.ignoreis optional and represents and if passed with valuetrue, then the app/func-app deployment for staging and production will be ignored.- For other inputs, see
action.yml
- If using builder, App.tsx, index.html, index.tsx should be in
src/app - Add
idandresourceGroupto "azureDeployConfig" key in package.json. (idis used as the storage account name) - Ensure that the
{name}:buildscript is present in package.json,namebeing the package name in package.json - Add workflow file, recommended template workflow-template.yml can be used
- Add
AZURE_CREDENTIALSto repository secrets