Repository navigation
publish-websites #3
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: publish-websites | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| publish_websites: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0 | |
| - working-directory: ./website | |
| env: | |
| GH_APIKEY: ${{ secrets.GH_APIKEY }} | |
| OSC_APIKEY: ${{ secrets.OSC_APIKEY }} | |
| run: | | |
| 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/bonsaibim_org_static_html | |
| git clone https://${{ secrets.GH_APIKEY }}@github.com/IfcOpenShell/ifcopenshell_org_static_html | |
| uv run website.py | |
| git -C bonsaibim_org_static_html add . | |
| git -C bonsaibim_org_static_html commit --allow-empty -m "$(git log --oneline -1)" | |
| git -C bonsaibim_org_static_html push | |
| git -C ifcopenshell_org_static_html add . | |
| git -C ifcopenshell_org_static_html commit --allow-empty -m "$(git log --oneline -1)" | |
| git -C ifcopenshell_org_static_html push |