Skip to content

Commit

Permalink
Update branch_deployments.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
maximearmstrong authored Jul 23, 2024
1 parent a077f53 commit 27fe715
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/branch_deployments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,32 @@ jobs:
ref: ${{ github.head_ref }}
path: project-repo

- name: Move Dagster folder to root
if: steps.prerun.outputs.result == 'pex-deploy'
run: |
cd project-repo
ls -lah
mkdir tmp_jaffle_dagster
shopt -s dotglob
mv jaffle_dagster/* tmp_jaffle_dagster
rm -rf jaffle_dagster
mv tmp_jaffle_dagster/* .
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'
uses: dagster-io/dagster-cloud-action/actions/[email protected]
Expand Down

0 comments on commit 27fe715

Please sign in to comment.