Skip to content

first commit

first commit #1

Workflow file for this run

name: docs
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
architecture: x64
- name: Install dependencies
run: pip install -r requirements.txt
- name: Deploy dbt docs
run: |
git config --global user.name 'Github Actions'
dbt docs generate
mkdir docs
mv dbt/target/manifest.json docs/manifest.json
mv dbt/target/catalog.json docs/catalog.json
mv dbt/target/index.html docs/index.html
ghp-import -n -p docs/
env:
DBT_PROJECT_DIR: ./dbt
DBT_PROFILES_DIR: ./dbt_profiles