Skip to content

Add script and update build-and-test-dbt workflow to push dbt Python dependencies to S3 #6

Add script and update build-and-test-dbt workflow to push dbt Python dependencies to S3

Add script and update build-and-test-dbt workflow to push dbt Python dependencies to S3 #6

name: deploy-dbt-dependencies
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
jobs:
deploy-dbt-dependencies:
runs-on: ubuntu-latest
# These permissions are needed to interact with GitHub's OIDC Token endpoint
# so that we can authenticate with AWS
permissions:
id-token: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup dbt
uses: ./.github/actions/setup_dbt
with:
role-to-assume: ${{ secrets.AWS_IAM_ROLE_TO_ASSUME_ARN }}
role-duration-seconds: 900
- name: Parse, bundle, and deploy Python model dependencies to S3
run: ../.github/scripts/deploy_dbt_model_dependencies.sh
working-directory: ${{ env.PROJECT_DIR }}
shell: bash