Skip to content

Commit

Permalink
chore(deps): add job to upload dbt documention to gh pages
Browse files Browse the repository at this point in the history
update actions/checkout to v4
  • Loading branch information
portovep committed Apr 11, 2024
1 parent f064e37 commit 411e2b5
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
POSTGRES_DB: ${{ vars.POSTGRES_DB }}
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install dependencies
run: |
dbt deps
Expand Down
33 changes: 28 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
image: ghcr.io/dbt-labs/dbt-postgres:1.7.11
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install dependencies
run: |
dbt deps
Expand All @@ -38,7 +38,7 @@ jobs:
image: ghcr.io/dbt-labs/dbt-postgres:1.7.11
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install dependencies
run: |
dbt deps
Expand All @@ -57,14 +57,37 @@ jobs:
image: ghcr.io/dbt-labs/dbt-postgres:1.7.11
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install dependencies
run: |
dbt deps
- name: Run data transformations
run: |
dbt run --target ${{ inputs.environment-name }}
generate-documentation:
name: Generate documentation
needs: [deploy]
runs-on: ubuntu-latest
environment: ${{ inputs.environment-name }}
container:
image: ghcr.io/dbt-labs/dbt-postgres:1.7.7
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: |
dbt deps
- name: Run seeds
run: |
dbt docs generate --target-path docs --target ${{ inputs.environment-name }}\
- name: Deploy docs
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
destination_dir: docs

generate-observability-report:
name: Generate observability report
needs: [deploy]
Expand All @@ -74,7 +97,7 @@ jobs:
image: ghcr.io/dbt-labs/dbt-postgres:1.7.11
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Run Elementary
uses: elementary-data/[email protected]
with:
Expand All @@ -86,7 +109,7 @@ jobs:
name: report.html
path: ./report/index.html
- name: Deploy report
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./report

0 comments on commit 411e2b5

Please sign in to comment.