File tree Expand file tree Collapse file tree 2 files changed +66
-8
lines changed
Expand file tree Collapse file tree 2 files changed +66
-8
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,10 @@ jobs:
1414 name : Validate dbt project
1515 runs-on : ubuntu-latest
1616 steps :
17- - uses : actions/checkout@v4
17+ - uses : actions/checkout@v6
1818
1919 - name : Install uv
20- uses : astral-sh/setup-uv@v4
21- with :
22- enable-cache : true
20+ uses : astral-sh/setup-uv@v7
2321
2422 - name : Install Python dependencies
2523 run : uv sync
@@ -38,12 +36,10 @@ jobs:
3836 runs-on : ubuntu-latest
3937 needs : validate
4038 steps :
41- - uses : actions/checkout@v4
39+ - uses : actions/checkout@v6
4240
4341 - name : Install uv
44- uses : astral-sh/setup-uv@v4
45- with :
46- enable-cache : true
42+ uses : astral-sh/setup-uv@v7
4743
4844 - name : Install Python dependencies
4945 run : uv sync
Original file line number Diff line number Diff line change 1+ name : Deploy dbt Docs to GitHub Pages
2+
3+ on :
4+ push :
5+ branches : [main]
6+ workflow_dispatch :
7+
8+ permissions :
9+ contents : read
10+ pages : write
11+ id-token : write
12+
13+ concurrency :
14+ group : " pages"
15+ cancel-in-progress : false
16+
17+ env :
18+ DBT_PROFILES_DIR : ${{ github.workspace }}
19+
20+ jobs :
21+ build :
22+ runs-on : ubuntu-latest
23+ steps :
24+ - name : Checkout
25+ uses : actions/checkout@v6
26+
27+ - name : Install uv
28+ uses : astral-sh/setup-uv@v7
29+
30+ - name : Install Python dependencies
31+ run : uv sync
32+
33+ - name : Install dbt dependencies
34+ run : uv run dbt deps
35+
36+ - name : Load seed data
37+ run : uv run dbt seed
38+
39+ - name : Run dbt models
40+ run : uv run dbt run
41+
42+ - name : Generate dbt docs
43+ run : uv run dbt docs generate
44+
45+ - name : Setup Pages
46+ uses : actions/configure-pages@v5
47+
48+ - name : Upload artifact
49+ uses : actions/upload-pages-artifact@v4
50+ with :
51+ path : ' target'
52+
53+ deploy :
54+ environment :
55+ name : github-pages
56+ url : ${{ steps.deployment.outputs.page_url }}
57+ runs-on : ubuntu-latest
58+ needs : build
59+ steps :
60+ - name : Deploy to GitHub Pages
61+ id : deployment
62+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments