Skip to content

Commit 3735dfd

Browse files
authored
Update azure-webapps-python.yml
1 parent 9efdcae commit 3735dfd

File tree

1 file changed

+6
-23
lines changed

1 file changed

+6
-23
lines changed

.github/workflows/azure-webapps-python.yml

+6-23
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,8 @@
1-
# This workflow will build and push a Python application to an Azure Web App when a commit is pushed to your default branch.
2-
#
3-
# This workflow assumes you have already created the target Azure App Service web app.
4-
# For instructions see https://docs.microsoft.com/en-us/azure/app-service/quickstart-python?tabs=bash&pivots=python-framework-flask
5-
#
6-
# To configure this workflow:
7-
#
8-
# 1. Download the Publish Profile for your Azure Web App. You can download this file from the Overview page of your Web App in the Azure Portal.
9-
# For more information: https://docs.microsoft.com/en-us/azure/app-service/deploy-github-actions?tabs=applevel#generate-deployment-credentials
10-
#
11-
# 2. Create a secret in your repository named AZURE_WEBAPP_PUBLISH_PROFILE, paste the publish profile contents as the value of the secret.
12-
# For instructions on obtaining the publish profile see: https://docs.microsoft.com/azure/app-service/deploy-github-actions#configure-the-github-secret
13-
#
14-
# 3. Change the value for the AZURE_WEBAPP_NAME. Optionally, change the PYTHON_VERSION environment variables below.
15-
#
16-
# For more information on GitHub Actions for Azure: https://github.com/Azure/Actions
17-
# For more information on the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
18-
# For more samples to get started with GitHub Action workflows to deploy to Azure: https://github.com/Azure/actions-workflow-samples
19-
201
name: Build and deploy Python app to Azure Web App
212

223
env:
23-
AZURE_WEBAPP_NAME: your-app-name # set this to the name of your Azure Web App
24-
PYTHON_VERSION: '3.8' # set this to the Python version to use
4+
AZURE_WEBAPP_NAME: minimax-tutorial
5+
PYTHON_VERSION: '3.8'
256

267
on:
278
push:
@@ -64,8 +45,10 @@ jobs:
6445
- name: Login via Azure CLI
6546
uses: azure/login@v1
6647
with:
67-
creds: ${{ secrets.AZURE_CREDENTIALS }}
68-
48+
creds: '${{ secrets.AZURE_CLIENT_ID }}'
49+
password: '${{ secrets.AZURE_CLIENT_SECRET }}'
50+
tenant: '${{ secrets.AZURE_TENANT_ID }}'
51+
6952
deploy:
7053
permissions:
7154
contents: none

0 commit comments

Comments
 (0)