This repository was archived by the owner on Dec 20, 2024. It is now read-only.
Split prefect deployments into dev and prod #2
This file contains hidden or 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-dev | |
| on: | |
| pull_request: | |
| push: | |
| branches: [ dev ] | |
| jobs: | |
| dev-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.dev_deployment |