Skip to content

Create build_page.yml #1

Create build_page.yml

Create build_page.yml #1

Workflow file for this run

name: Deploy Python project to Azure Function App
on:
push:
branches: ["master"]
env:
PYTHON_VERSION: '3.12' # set this to the python version to use (e.g. '3.6', '3.7', '3.8')
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment: dev
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@v4
- name: Setup Python ${{ env.PYTHON_VERSION }} Environment
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: 'Resolve Project Dependencies Using Pip'
shell: bash
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: 'Build page'
shell: bash
run: |
python scripts/page_gen/gen_page.py