-
Notifications
You must be signed in to change notification settings - Fork 442
39 lines (39 loc) · 1.22 KB
/
publish_api_docs.yml
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
---
name: Publish SDK Docs
on:
push:
branches: [release/**]
jobs:
publish:
name: Build 🔨 and publish 📰 the api docs 📁 to gh-pages
if: github.repository == 'zenml-io/zenml'
runs-on: ubuntu-latest
env:
ZENML_DEBUG: 1
ZENML_ANALYTICS_OPT_IN: false
PYTHONIOENCODING: utf-8
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0 # fetch all commits/branches including gh-pages
- name: Get the version from the github branch name
id: get_version
run: |
BRANCH='${{github.ref_name}}'
echo ::set-output name=VERSION::${BRANCH#release/}
- uses: actions/[email protected]
with:
node-version: '14'
- run: npm install
- run: npm install html-minifier -g
- name: Set up Python 3.11
uses: actions/[email protected]
with:
python-version: '3.11'
- name: Setup git user
run: |
git config --global user.name 'Code Monkey'
git config --global user.email '[email protected]'
- name: Runs docs generation
run: |-
bash scripts/generate-docs.sh -s src/zenml/ --push --latest -v ${{ steps.get_version.outputs.VERSION }}