-
Notifications
You must be signed in to change notification settings - Fork 6
28 lines (25 loc) · 1.12 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: publish
on: push
jobs:
publish_websites:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- working-directory: ./website
env:
GH_APIKEY: ${{ secrets.GH_APIKEY }}
OSC_APIKEY: ${{ secrets.OSC_APIKEY }}
run: |
sudo apt update && sudo apt install -y python3-pip
pip3 install requests Jinja2
git config --global user.name 'IfcOpenBot'
git config --global user.email '[email protected]'
git clone https://${{ secrets.GH_APIKEY }}@github.com/IfcOpenShell/blenderbim_org_static_html
git clone https://${{ secrets.GH_APIKEY }}@github.com/IfcOpenShell/ifcopenshell_org_static_html
python3 website.py
git -C blenderbim_org_static_html add .
git -C blenderbim_org_static_html commit --allow-empty -m "$(git log --oneline -1)"
git -C blenderbim_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