Skip to content

Commit c9ce6a3

Browse files
committed
Create workflow using Azure CLI
1 parent 0e4d14e commit c9ce6a3

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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 }}

0 commit comments

Comments
 (0)