add cabana pic (#82) #66
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: docs metrics-operator | |
on: | |
push: | |
branches: [main] | |
jobs: | |
generate-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: gh-pages | |
- name: Create conda environment | |
run: conda create --quiet -c conda-forge --name docs sphinx-material | |
- name: Generate Docs | |
run: | | |
export PATH="/usr/share/miniconda/bin:$PATH" | |
root=$PWD | |
source activate docs | |
git clone https://github.com/converged-computing/metrics-operator /tmp/operator | |
cd /tmp/operator/docs | |
pip install -r requirements.txt | |
make html | |
echo | |
echo "ls" | |
ls | |
echo | |
echo "ls _build/html" | |
ls _build/html | |
mv $root/.git _build/html/.git | |
rm -rf $root | |
mv /tmp/operator/docs/_build/html $root | |
cd ${root} | |
echo "ls $root" | |
ls . | |
touch .nojekyll | |
git add .nojekyll || echo "Already added" | |
git add . | |
ls . | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@ba1486788b0490a235422264426c45848eac35c6 # v4.4.1 | |
with: | |
branch: gh-pages | |
folder: . |