Skip to content

[dbt] br_anatel_banda_larga_fixa #126

[dbt] br_anatel_banda_larga_fixa

[dbt] br_anatel_banda_larga_fixa #126

Workflow file for this run

name: Deploy docs
on:
pull_request:
types: [closed]
env:
DBT_SA: ${{ secrets.DBT_SA }}
jobs:
docs:
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'master'
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.9.x"
- name: Upgrade pip
run: |
pip install -U pip
- name: Install dependencies
run: |
pip3 install -r requirements-docs.txt -r requirements.txt
- name: Setup credentials
run: |
echo $DBT_SA | base64 --decode > dbt-sa.json
python3 .github/workflows/scripts/modify_profiles.py
- name: Generate docs
run: |
dbt docs generate --profiles-dir .
- name: Delete credentials
run: |
rm dbt-sa.json
- name: Deploy docs
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: target