File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build dbt docs
2
+
3
+ on :
4
+ push :
5
+ branches : [main]
6
+
7
+ env :
8
+ DBT_SECRET_MOTHERDUCK_TOKEN : ${{ secrets.MOTHERDUCK_TOKEN }}
9
+
10
+ permissions :
11
+ contents : read
12
+ pages : write
13
+ id-token : write
14
+
15
+ jobs :
16
+ docs :
17
+ environment :
18
+ name : github-pages
19
+ url : ${{ steps.deployment.outputs.page_url }}
20
+ runs-on : ubuntu-latest
21
+ steps :
22
+ - name : Checkout
23
+ uses : actions/checkout@v4
24
+
25
+ - name : Install dbt
26
+ run : |
27
+ pip install -r requirements.txt
28
+ cd dbt_spotify
29
+ dbt deps
30
+
31
+ - name : Generate docs
32
+ run : dbt docs generate
33
+
34
+ - name : Setup Pages
35
+ uses : actions/configure-pages@v5
36
+
37
+ - name : Upload artifact
38
+ uses : actions/upload-pages-artifact@v3
39
+ with :
40
+ path : " ./target/"
41
+
42
+ - name : Deploy to GitHub Pages
43
+ id : deployment
44
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments