-
Notifications
You must be signed in to change notification settings - Fork 4
49 lines (39 loc) · 1.09 KB
/
docs.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Deploy docs
on:
pull_request:
types: [closed]
env:
DBT_SA: ${{ secrets.DBT_SA }}
jobs:
docs:
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'master'
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.9.x"
- name: Upgrade pip
run: |
pip install -U pip
- name: Install dependencies
run: |
pip3 install -r requirements-docs.txt -r requirements.txt
- name: Setup credentials
run: |
echo $DBT_SA | base64 --decode > dbt-sa.json
python3 .github/workflows/scripts/modify_profiles.py
- name: Generate docs
run: |
dbt docs generate --profiles-dir .
- name: Delete credentials
run: |
rm dbt-sa.json
- name: Deploy docs
uses: JamesIves/github-pages-deploy-action@v4.2.3
with:
branch: gh-pages
folder: target