Merge pull request #45 from rcpch:shape-docs #40
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
# 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 | |
with: | |
lfs: true # ensures large files are downloaded using Git LFS | |
- 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: "." |