This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to Azure Web App | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'source_codes/flask/**' | |
pull_request: | |
paths: | |
- 'source_codes/flask/**' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Azure CLI | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y ca-certificates curl apt-transport-https lsb-release gnupg | |
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash | |
- name: Login to Azure | |
uses: azure/login@v1 | |
with: | |
creds: ${{ secrets.AZURE_CREDENTIALS }} | |
- name: Deploy to Azure Web App | |
run: | | |
az webapp up --runtime PYTHON:3.9 --sku B1 --logs --resource-group rg-QuickChan --location KoreaCentral |