Skip to content

Merge pull request #413 from cagov/upgrade-tf-provider-0.97-402 #161

Merge pull request #413 from cagov/upgrade-tf-provider-0.97-402

Merge pull request #413 from cagov/upgrade-tf-provider-0.97-402 #161

Workflow file for this run

name: docs
on:
pull_request:
push:
branches: [main]
permissions:
contents: write
env:
DBT_PROFILES_DIR: ci
SNOWFLAKE_PRIVATE_KEY: ${{ SECRETS.SNOWFLAKE_PRIVATE_KEY_DEV }}
SNOWFLAKE_USER: GITHUB_ACTIONS_SVC_USER_DEV
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- uses: snok/install-poetry@v1
with:
virtualenvs-create: false
- uses: actions/cache@v4
with:
key: ${{ github.ref }}
path: .cache
- name: Install dependencies
run: |
poetry install
- name: Build dbt docs
run: |
# Generate snowflake dbt docs
dbt deps --project-dir=transform
dbt docs generate --project-dir=transform
cp -r transform/target docs/dbt_docs_snowflake
- name: Deploy docs to GitHub Pages
if: github.ref == 'refs/heads/main'
run: poetry run mkdocs gh-deploy --force