Skip to content

Commit

Permalink
Create blenderbim-docs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Moult authored Apr 2, 2024
1 parent 8d14591 commit b15336c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/blenderbim-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: blenderbim-docs
on:
workflow_dispatch:
jobs:
blenderbim-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/src/blenderbim/docs && make html
git config --global user.name 'IfcOpenBot'
git config --global user.email 'IfcOpenBot@users.noreply.github.com'
git clone https://${{ secrets.GH_APIKEY }}@github.com/IfcOpenShell/blenderbim_org_docs
rm -rf blenderbim_org_docs/*
cp -r IfcOpenShell/src/blenderbim/docs/_build/html/* blenderbim_org_docs/
git -C blenderbim_org_docs add .
git -C blenderbim_org_docs commit -m "Build"
git -C blenderbim_org_docs push

0 comments on commit b15336c

Please sign in to comment.