trigger on push instead of release (#1157)

Co-authored-by: Josh Gross <[email protected]>
This commit is contained in:
Sarah Edwards
2021-10-11 15:53:15 -04:00
committed by GitHub
co-authored by Josh Gross
parent ad91ff259d
commit 6b14bf21cb
6 changed files with 24 additions and 18 deletions
+4 -3
View File
@@ -1,4 +1,4 @@
# This workflow will build and push a node.js application to an Azure Web App when a release is created.
# This workflow will build and push a node.js application to an Azure Web App when there is a push to the $default-branch branch.
#
# This workflow assumes you have already created the target Azure App Service web app.
# For instructions see https://docs.microsoft.com/azure/app-service/app-service-plan-manage#create-an-app-service-plan
@@ -16,8 +16,9 @@
# For more information on GitHub Actions for Azure, refer to https://github.com/Azure/Actions
# For more samples to get started with GitHub Action workflows to deploy to Azure, refer to https://github.com/Azure/actions-workflow-samples
on:
release:
types: [created]
push:
branches:
- $default-branch
env:
AZURE_WEBAPP_NAME: your-app-name # set this to your application's name