Skip to content

Common policy module and Sentinel user #309

Common policy module and Sentinel user

Common policy module and Sentinel user #309

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@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"
- name: Build dbt docs
run: |
# Generate snowflake dbt docs
uv run dbt deps --project-dir=transform
uv run 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: uv run mkdocs gh-deploy --force