Skip to content

Merge pull request #12 from rcpch:development #24

Merge pull request #12 from rcpch:development

Merge pull request #12 from rcpch:development #24

# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions
# More info on Python, GitHub Actions, and Azure App Service: https://aka.ms/python-webapps-actions
name: Build and deploy Python app to Azure Web App - rcpch-nhs-organisations
on:
push:
branches:
- live
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python version
uses: actions/setup-python@v1
with:
python-version: "3.11"
- name: Install dependencies
run: pip install -r requirements.txt
- name: "Deploy to Azure Web App"
uses: azure/webapps-deploy@v2 # Update the version to v2
with:
app-name: "RCPCH-NHS-organisations"
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_A76B7421A08D44778EBB49AB30B51B3D }}
package: "."