File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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+
4+ name : ' Build and deploy Python app to Azure Web App: flasktestiba'
5+
6+ on :
7+ push :
8+ branches :
9+ - main
10+ workflow_dispatch :
11+
12+ jobs :
13+ build-and-deploy :
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - uses : actions/checkout@v2
18+
19+ - name : Set up Python version
20+ uses : actions/setup-python@v1
21+ with :
22+ python-version : ' 3.9'
23+
24+ - name : Build using AppService-Build
25+ uses : azure/appservice-build@v2
26+ with :
27+ platform : python
28+ platform-version : ' 3.9'
29+
30+ - name : ' Deploy to Azure Web App'
31+ uses : azure/webapps-deploy@v2
32+ with :
33+ app-name : ' flasktestiba'
34+ slot-name : ' production'
35+ publish-profile : ${{ secrets.AzureAppService_PublishProfile_1787e2ad1a4848fbbc74f742fb80fcc1 }}
You can’t perform that action at this time.
0 commit comments