Split prefect deployments into dev and prod #1
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
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 |