Skip to content

Commit 28e4f76

Browse files
authored
Create build_docs.yml
1 parent c6f2853 commit 28e4f76

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/build_docs.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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

0 commit comments

Comments
 (0)