Skip to content

πŸ”₯ feat: remove company property #94

πŸ”₯ feat: remove company property

πŸ”₯ feat: remove company property #94

Workflow file for this run

---
name: Deploy dbt
on:
push: { branches: ["main"] }
workflow_dispatch:
env:
DBT_PROJECT_DIR: ${{ vars.DBT_PROJECT_DIR }}
DBT_PROFILES_DIR: ${{ vars.DBT_PROFILES_DIR }}
permissions:
contents: write
jobs:
dbt-build:
name: Build dbt πŸŽ‰
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v3
- name: πŸ“¦ Set up Poetry
run: pipx install poetry==1.8.2
- name: Python setup 🐍
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dbt ⬇️
run: poetry install
- name: Create mock database 🀑
run: >
poetry run python -c
"import duckdb; con = duckdb.connect('$GITHUB_WORKSPACE/billiam_database/billiam.duckdb'); con.close()"
- name: Install dbt dependencies βž•
run: |
poetry run dbt clean --no-clean-project-files-only
poetry run dbt deps
poetry run dbt run-operation set_ci_environment
- name: Compile dbt docs πŸ“
run: poetry run dbt docs generate
- name: Deploy dbt docs πŸš€
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: billiam_database/target