Skip to content

Commit 81b8838

Browse files
Add workflow for deploying dbt docs with manual option
1 parent 1e2ae9a commit 81b8838

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/generate_and_deploy_dbt_docs.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ concurrency:
3333

3434
env:
3535
PYTHON_VERSION: '3.9'
36-
LINT_SCRIPT_PATH: ./lint_tuva_project.sh
3736

3837
####### Secrets #######
3938
####### Snowflake
@@ -47,7 +46,10 @@ env:
4746

4847
jobs:
4948
generate-docs:
50-
runs-on: ubuntu-latest
49+
runs-on: ubuntu-latestdefaults:
50+
defaults:
51+
run:
52+
working-directory: ./ci_testing
5153

5254
steps:
5355
- name: Checkout repository
@@ -65,24 +67,21 @@ jobs:
6567
6668
- name: dbt-deps
6769
run: dbt deps --profiles-dir ./profiles/snowflake
68-
working-directory: ci_testing
6970

7071
- name: dbt-debug
7172
run: dbt debug --profiles-dir ./profiles/snowflake
72-
working-directory: ci_testing
7373

7474
- name: dbt-docs-generate
7575
run: |
7676
dbt docs generate --profiles-dir ./profiles/snowflake
77-
working-directory: ci_testing
7877
7978
- name: Setup Pages
8079
uses: actions/configure-pages@v4
8180

8281
- name: Upload artifact
8382
uses: actions/upload-pages-artifact@v3
8483
with:
85-
path: './target' # dbt generates docs in the target directory
84+
path: './ci_testing/target' # dbt generates docs in the target directory
8685

8786
deploy:
8887
needs: generate-docs

0 commit comments

Comments
 (0)