Skip to content

Split prefect deployments into dev and prod #1

Split prefect deployments into dev and prod

Split prefect deployments into dev and prod #1

Workflow file for this run

name: prefect-prod
on:
pull_request:
push:
#branches: [ main ]
branches: [ dev ]
jobs:
prod-deployment:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Deploy prefect deployment
env:
PREFECT_API_URL: ${{ secrets.PREFECT_API_URL }}
run: |
python -m pip install --upgrade pip
pip install -r requirements/prefect.txt
pip install -r requirements/prod.txt
prefect config set PREFECT_API_URL=$PREFECT_API_URL
python -m src.deploy_prefect.prod_deployment