-
Notifications
You must be signed in to change notification settings - Fork 48
35 lines (35 loc) · 1.19 KB
/
hugo-versioned-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
name: Hugo Versioned Docs
on:
workflow_dispatch:
jobs:
hugo-check:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version-file: `.python-version`
- name:
shell: bash
run: |
python -m pip install --upgrade pip
pip install -r dev-requirements.txt
- name: Setup PYTHONPATH
shell: bash
run: |
PYTHONPATH="${PYTHONPATH}:${GITHUB_WORKSPACE}/gooddata-pandas/"
PYTHONPATH="${PYTHONPATH}:${GITHUB_WORKSPACE}/gooddata-api-client/"
PYTHONPATH="${PYTHONPATH}:${GITHUB_WORKSPACE}/gooddata-sdk/"
echo "PYTHONPATH=$PYTHONPATH" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Generate Versioned Docs
uses: gooddata/gooddata-python-sdk/.github/actions/hugo-build-versioned-action@master
- name: htmltest
run: |
rm -f htmltest.sh
wget https://raw.githubusercontent.com/gooddata/gooddata-python-sdk/master/scripts/htmltest.sh
chmod +x ./htmltest.sh
./htmltest.sh -c docs/.htmltest.yml docs/public