-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): add job to upload dbt documention to gh pages
update actions/checkout to v4
- Loading branch information
Showing
2 changed files
with
29 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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] | ||
|
@@ -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: | ||
|
@@ -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 |