Skip to content

Commit c2ad18f

Browse files
committed
[.github/workflows/main.yml] Generate docs for cdd-python
1 parent 1f43d35 commit c2ad18f

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,20 @@ jobs:
1818
with:
1919
node-version: lts/*
2020

21+
- uses: actions/setup-python@v5
22+
with:
23+
python-version: '3.12'
24+
25+
- name: "[cdd-python] Generate documentation"
26+
run: |
27+
git clone --depth=1 --single-branch https://github.com/offscale/cdd-python
28+
pushd cdd-python
29+
python3 -m pip install -U pip
30+
python3 -m pip install -U setuptools wheel
31+
python3 -m pip install -r requirements-docs.txt
32+
mkdocs build
33+
popd
34+
2135
- name: Prepare and deploy
2236
env:
2337
GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
@@ -39,5 +53,5 @@ jobs:
3953
ng build --configuration production --base-href 'https://'"$CNAME"
4054
head -n6 README.md > "$DIST"'/README.md'
4155
mv "$DIST"'/browser'/* "$DIST"
56+
mv cdd-python/site "$DIST"'/cdd-python'
4257
npx angular-cli-ghpages --dir="$DIST" --cname="$CNAME" --repo='https://'"$GITHUB_TOKEN"'@github.com/'"$TARGET" --branch='master' --message="$MSG" --name="$name" --email="$email" --no-silent
43-

0 commit comments

Comments
 (0)