Skip to content

Commit 357ec48

Browse files
committed
Add or update the App Service deployment workflow configuration from Azure Portal.
1 parent 4a1ddfe commit 357ec48

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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 - screencast20
5+
6+
on:
7+
push:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build-and-deploy:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@master
17+
18+
- name: Set up Python version
19+
uses: actions/setup-python@v1
20+
with:
21+
python-version: '3.8'
22+
23+
- name: Build using AppService-Build
24+
uses: azure/appservice-build@v1
25+
with:
26+
platform: python
27+
platform-version: '3.8'
28+
29+
- name: 'Deploy to Azure Web App'
30+
uses: azure/webapps-deploy@v1
31+
with:
32+
app-name: 'screencast20'
33+
slot-name: 'production'
34+
publish-profile: ${{ secrets.AzureAppService_PublishProfile_b928012312c44f82b061fb204f14d5bb }}

0 commit comments

Comments
 (0)