-
Notifications
You must be signed in to change notification settings - Fork 4
58 lines (48 loc) · 1.49 KB
/
dbt-docs-website.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: DBT Docs Generate and Upload to GCS
on:
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref_protected == 'true' && github.sha || github.ref }}-{{ github.event_name }}
cancel-in-progress: true
env:
DBT_DEFAULT_PROFILE_TARGET: stellar_dbt_public
DBT_TARGET: prod
DBT_DATASET: crypto_stellar
DBT_PROJECT: crypto-stellar
DBT_PROFILES_DIR: ${{ github.workspace }}
DBT_MAX_BYTES_BILLED: 1000000000000
DBT_JOB_TIMEOUT: 300
DBT_THREADS: 1
DBT_JOB_RETRIES: 1
IS_RECENCY_AIRFLOW_TASK: false
jobs:
dbt-docs:
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.13
- name: Checkout Repository
uses: actions/checkout@v2
- id: "auth"
uses: "google-github-actions/auth@v2"
with:
project_id: "hubble-261722"
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 --select "stellar_dbt_public" --exclude "dbt_project_evaluator_exceptions"
- id: "upload-folder"
uses: "google-github-actions/upload-cloud-storage@v2"
with:
process_gcloudignore: false
path: "${{ github.workspace }}/target"
destination: "www.stellar-dbt-docs.com"
parent: false
glob: "*.json|*.html"