This is a demo change #24
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: Deploy dbt docs to GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.8 | |
- name: Install dbt | |
run: pip install dbt-snowflake | |
- name: Set up dbt profile | |
run: | | |
mkdir -p ~/.dbt | |
echo " | |
gmds_demo_aws: | |
target: prod | |
outputs: | |
prod: | |
type: snowflake | |
threads: 14 | |
account: ${{ secrets.DBT_SNOWFLAKE_ACCOUNT }} | |
database: analytics | |
role: transformer | |
schema: reporting | |
warehouse: dbt_xs | |
user: ${{ secrets.DBT_SNOWFLAKE_USER }} | |
password: ${{ secrets.DBT_SNOWFLAKE_PASS }} | |
" > ~/.dbt/profiles.yml | |
- name: Install dependancies | |
run: dbt deps | |
- name: Generate dbt docs | |
run: dbt docs generate | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GH_PAT }} | |
publish_dir: ./target |