Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Docs Directory for GitHub Pages #81

Merged
merged 5 commits into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading