Skip to content

Commit 8740df6

Browse files
committed
template: don't actually need app name for webapps-deploy if using publish profile
1 parent 9dabfe2 commit 8740df6

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

templates/Coalesce.Vue.Template/content/.github/workflows/build-test-and-deploy.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,12 @@ on:
1010

1111
# CONFIGURATION
1212
# For help, go to https://github.com/Azure/Actions
13-
#
13+
1414
# 1. Set up the production Environment in the GitHub Repository Settings.
1515
# Environment Protection Rules are recommended to prevent accidental deployments.
1616
# https://docs.github.com/actions/managing-workflow-runs-and-deployments/managing-deployments/managing-environments-for-deployment#deployment-protection-rules
17-
#
18-
# 2. Set up the following secrets in your repository - https://docs.github.com/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions#creating-secrets-for-an-environment
19-
# AZURE_WEBAPP_PUBLISH_PROFILE
20-
#
21-
# 3. Change these variables for your configuration:
22-
env:
23-
AZURE_WEBAPP_NAME: MY_WEBAPP_NAME # set this to your app service name
17+
18+
# 2. Set up the `AZURE_WEBAPP_PUBLISH_PROFILE` secret in your repository - https://docs.github.com/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions#creating-secrets-for-an-environment
2419

2520
jobs:
2621
build-and-test:
@@ -98,7 +93,7 @@ jobs:
9893
uses: azure/webapps-deploy@v3
9994
id: deploy-to-webapp
10095
with:
101-
app-name: ${{ env.AZURE_WEBAPP_NAME }}
96+
app-name: null
10297
slot-name: "production"
10398
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
10499
package: .

0 commit comments

Comments
 (0)