[BUGFIX] Correct typos and wrong description in zero-shot LLM example… #173
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 Docs | |
on: | |
push: | |
branches: [master] | |
jobs: | |
api-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: "3.9" | |
- name: Setup Linux | |
if: runner.os == 'linux' | |
run: | | |
sudo apt-get install -y cmake libsndfile1 | |
- name: Install Ludwig | |
run: | | |
pip install ludwig | |
pip install ludwig[viz] | |
- name: Set Ludwig version env | |
run: | | |
echo "ludwig_version=$(python -c "import ludwig; print('.'.join(ludwig.__version__.split('.')[:2]))")" >> $GITHUB_ENV | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Setup doc deploy | |
run: | | |
git config --global user.name ci-bot | |
git config --global user.email [email protected] | |
- name: Publish docs | |
run: mike deploy --push --update-aliases ${{ env.ludwig_version }} latest --no-redirect --title="${{ env.ludwig_version }} (latest)" | |
- name: Copy sitemap to root | |
run: | | |
git checkout gh-pages | |
cp ${{ env.ludwig_version }}/sitemap.xml sitemap.xml | |
- name: Copy robots.txt to root | |
run: | | |
git checkout gh-pages | |
cp ${{ env.ludwig_version }}/robots.txt robots.txt | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Copying sitemap from version to make it easy for search engines to find our documentation. | |
branch: gh-pages | |
push_options: --force |