Skip to content

Commit

Permalink
dbt docs to gcs
Browse files Browse the repository at this point in the history
  • Loading branch information
laysabit committed Mar 22, 2024
1 parent 3791096 commit 1f20a79
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/dbt-docs-website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: DBT Docs Generate and Upload to GCS

on:
push:
branches:
- dbt-docs-website

env:
DBT_DEFAULT_PROFILE_TARGET: stellar_dbt_public
DBT_PROFILES_DIR: ${{ github.workspace }}
DBT_MAX_BYTES_BILLED: 1000000000000
DBT_JOB_TIMEOUT: 300
DBT_THREADS: 1
DBT_JOB_RETRIES: 1

jobs:
dbt-docs:
runs-on: ubuntu-latest

steps:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Checkout Repository
uses: actions/checkout@v2

- id: 'auth'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: "${{ secrets.CREDS_PROD_HUBBLE }}"

- name: Install dependencies
run: pip install -r requirements.txt

- name: Generate dbt docs
run: |
dbt deps
dbt docs generate
- id: 'upload-folder'
uses: 'google-github-actions/upload-cloud-storage@v2'
with:
path: '${{ github.workspace }}/target'
destination: 'www.stellar-dbt-docs.com'
parent: false
glob: '*.json|*.html'

0 comments on commit 1f20a79

Please sign in to comment.