Helm chart improvements for robustness and high availability #409
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 }} |