Skip to content

Update python-version to 3.12 in deploy-netlify.yml #2

Update python-version to 3.12 in deploy-netlify.yml

Update python-version to 3.12 in deploy-netlify.yml #2

# GitHub Actions workflow for deploying to Netlify
name: Deploy to Netlify
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Deploy to Netlify
uses: netlify/actions/cli@v2
with:
args: deploy --site=$NETLIFY_SITE_ID --auth=$NETLIFY_AUTH_TOKEN