File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change 1- # Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
2- # More GitHub Actions for Azure: https://github.com/Azure/actions
3- # More info on Python, GitHub Actions, and Azure App Service: https://aka.ms/python-webapps-actions
4-
51name : Build and deploy Python app to Azure Web App - EOAgriTool
62
73on :
3228 - name : Install dependencies
3329 run : pip install -r requirements.txt
3430
35- # Optional: Add step to run tests here (PyTest, Django test suites, etc.)
36-
3731 - name : Zip artifact for deployment
3832 run : zip release.zip ./* -r
3933
40- - name : Deploy to GitHub Pages
41- uses : peaceiris/actions-gh-pages@v4
42- with :
43- github_token : ${{ secrets.PAT_TOKEN }}
44- publish_dir : . # Change if your static files are in a different directory
45-
4634 - name : Upload artifact for deployment jobs
4735 uses : actions/upload-artifact@v4
4836 with :
7967 MESSAGE : ' Deployment to production failed. Please review GitHub Actions logs.'
8068
8169 - name : Login to Azure
82- uses : azure/login@v3
70+ uses : azure/login@v2 # Fixed version
8371 with :
8472 client-id : ${{ secrets.AZUREAPPSERVICE_CLIENTID }}
8573 tenant-id : ${{ secrets.AZUREAPPSERVICE_TENANTID }}
You can’t perform that action at this time.
0 commit comments