Add or update the Azure App Service build and deployment workflow config
This commit is contained in:
parent
8e6543f0b6
commit
439d79ad6d
1 changed files with 38 additions and 0 deletions
38
.github/workflows/master_generalbotsmodels.yml
vendored
Normal file
38
.github/workflows/master_generalbotsmodels.yml
vendored
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
# Docs for the Azure Web Apps Deploy action: https://go.microsoft.com/fwlink/?linkid=2134798
|
||||||
|
# More GitHub Actions for Azure: https://go.microsoft.com/fwlink/?linkid=2135048
|
||||||
|
|
||||||
|
name: Azure App Service - generalbotsmodels(Production), Build and deploy Python app
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
# checkout the repo
|
||||||
|
- name: 'Checkout Github Action'
|
||||||
|
uses: actions/checkout@master
|
||||||
|
|
||||||
|
|
||||||
|
- name: Set up Python version
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: '3.9'
|
||||||
|
|
||||||
|
- name: Build using AppService-Build
|
||||||
|
uses: azure/appservice-build@v2
|
||||||
|
with:
|
||||||
|
platform: python
|
||||||
|
platform-version: '3.9'
|
||||||
|
|
||||||
|
- name: Run Azure webapp deploy action using publish profile credentials
|
||||||
|
uses: azure/webapps-deploy@v2
|
||||||
|
with:
|
||||||
|
app-name: generalbotsmodels
|
||||||
|
slot-name: Production
|
||||||
|
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_3BFD0A2EC7464AD1A5905CD8D0B8D8AB }}
|
||||||
|
|
||||||
Loading…
Add table
Reference in a new issue