|
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 |
| - |
20 | 1 | name: Build and deploy Python app to Azure Web App
|
21 | 2 |
|
22 | 3 | 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' |
25 | 6 |
|
26 | 7 | on:
|
27 | 8 | push:
|
|
64 | 45 | - name: Login via Azure CLI
|
65 | 46 | uses: azure/login@v1
|
66 | 47 | 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 | + |
69 | 52 | deploy:
|
70 | 53 | permissions:
|
71 | 54 | contents: none
|
|
0 commit comments