Skip to content

Commit

Permalink
Merge pull request #81 from Synthetixio/feat/dbt-docs-pages
Browse files Browse the repository at this point in the history
Create Docs Directory for GitHub Pages
  • Loading branch information
Tburm authored Jul 18, 2024
2 parents a8313bd + d57cdda commit 59cae18
Show file tree
Hide file tree
Showing 5 changed files with 149 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: documentation

# on all pull requests
# on pushes to the main branch
on:
push:
branches:
- main
pull_request:
branches:
- main

permissions:
contents: write

jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up python
uses: actions/setup-python@v3
with:
python-version: 3.10.11
- name: Install python dependencies
run: |
cd transformers && pip install -r requirements.txt
- name: Install dbt dependencies
run: |
cd transformers/synthetix && dbt deps
- name: Build docs
run: |
cd transformers/synthetix && dbt docs generate --profiles-dir profiles --profile synthetix-host
env:
PG_HOST: ${{ secrets.PG_HOST }}
PG_PASSWORD: ${{ secrets.PG_PASSWORD }}
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: target
force_orphan: true
1 change: 1 addition & 0 deletions transformers/synthetix/docs/catalog.json

Large diffs are not rendered by default.

75 changes: 75 additions & 0 deletions transformers/synthetix/docs/index.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions transformers/synthetix/docs/manifest.json

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions transformers/synthetix/profiles/profiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,31 @@ synthetix:
connect_timeout: 10
retries: 1
threads: 4

synthetix-host:
target: prod
outputs:
prod:
type: postgres
host: "{{ env_var('PG_HOST') }}"
user: analytics
password: "{{ env_var('PG_PASSWORD') }}"
port: 23798
dbname: analytics
schema: prod
keepalives_idle: 0
connect_timeout: 10
retries: 1
threads: 4
prod-op:
type: postgres
host: localhost
user: analytics
password: "{{ env_var('PG_PASSWORD') }}"
port: 23798
dbname: analytics
schema: prod
keepalives_idle: 0
connect_timeout: 10
retries: 1
threads: 4

0 comments on commit 59cae18

Please sign in to comment.