Last active
March 19, 2019 01:33
-
-
Save sjwaight/4bb9480939c1a9cd5803cd752b728f33 to your computer and use it in GitHub Desktop.
GitHub Action definition to deploy a repository to an Azure Web App
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
workflow "Publish to App Service" { | |
on = "push" | |
resolves = ["Deploy to Web App"] | |
} | |
action "Azure Login" { | |
uses = "Azure/github-actions/login@master" | |
env = { | |
AZURE_SUBSCRIPTION = "YOUR_AZURE_SUBSCRIPTION_NAME" | |
} | |
secrets = ["AZURE_SERVICE_APP_ID", "AZURE_SERVICE_PASSWORD", "AZURE_SERVICE_TENANT"] | |
} | |
action "Deploy to Web App" { | |
uses = "Azure/github-actions/webapp@master" | |
needs = ["Azure Login"] | |
env = { | |
AZURE_APP_NAME = "YOUR_LINUX_WEB_APP_NAME" | |
AZURE_APP_PACKAGE_LOCATION = "./" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment