first commit #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |