bonsai-docs #12
Workflow file for this run
This file contains hidden or 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: bonsai-docs | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| bonsai-docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - working-directory: ./ | |
| env: | |
| GH_APIKEY: ${{ secrets.GH_APIKEY }} | |
| run: | | |
| sudo apt update && sudo apt install -y python3-pip | |
| pip3 install furo sphinx-autoapi sphinx-copybutton | |
| git clone https://${{ secrets.GH_APIKEY }}@github.com/IfcOpenShell/IfcOpenShell | |
| cd IfcOpenShell | |
| git checkout 5db65f404 | |
| cd src/bonsai/docs | |
| make html | |
| git config --global user.name 'IfcOpenBot' | |
| git config --global user.email '[email protected]' | |
| git clone https://${{ secrets.GH_APIKEY }}@github.com/IfcOpenShell/bonsaibim_org_docs | |
| git -C bonsaibim_org_docs checkout -B main | |
| rm -rf bonsaibim_org_docs/* | |
| cp -r _build/html/* bonsaibim_org_docs/ | |
| echo "docs.bonsaibim.org" > bonsaibim_org_docs/CNAME | |
| echo "<!-- Generated for Bonsai -->" >> bonsaibim_org_docs/index.html | |
| touch bonsaibim_org_docs/.nojekyll | |
| git -C bonsaibim_org_docs add . | |
| git -C bonsaibim_org_docs commit -m "Build" | |
| git -C bonsaibim_org_docs push |