diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 319e3bc..817e8a5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -43,6 +43,7 @@ jobs: path: project-repo - name: Move Dagster folder to root + if: steps.prerun.outputs.result == 'pex-deploy' run: | cd project-repo ls -lah @@ -54,6 +55,18 @@ jobs: rm -rf tmp_jaffle_dagster ls -lah cd .. + + - name: Prepare DBT project for deployment + if: steps.prerun.outputs.result == 'pex-deploy' + # --upgrade-strategy eager picks up newer packages that are required for things to work + run: | + pip install pip --upgrade + cd project-repo + pip install . --upgrade --upgrade-strategy eager + dagster-dbt project prepare-for-deployment --file jaffle_dagster/project.py + # The cli command below can be used to manage syncing the prod manifest to branches if state_path is set on the DbtProject + # dagster-cloud ci dagster-dbt project manage-state --file jaffle_dagster/project.py + shell: bash - name: Python Executable Deploy if: steps.prerun.outputs.result == 'pex-deploy'