Skip to content

Refactor Data Storage #146

Refactor Data Storage

Refactor Data Storage #146

Workflow file for this run

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 -I --force-reinstall setuptools==71.0.0 && pip install --no-build-isolation --no-cache-dir -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: transformers/synthetix/target
force_orphan: true