File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,24 +2,31 @@ name: ci-ifctester-org
22
33on :
44 workflow_dispatch :
5+ push :
6+ paths :
7+ - src/ifctester/**
58
69jobs :
7- publish_websites :
10+ publish_website :
811 runs-on : ubuntu-22.04
912 steps :
1013 - uses : actions/checkout@v2
11-
12- - working-directory : ./src/ifctester
13- env :
14- GH_APIKEY : ${{ secrets.GH_APIKEY }}
15- OSC_APIKEY : ${{ secrets.OSC_APIKEY }}
14+ - name : Checkout ifctester_org_static_html
15+ uses : actions/checkout@v4
16+ with :
17+ repository : IfcOpenShell/ifctester_org_static_html
18+ token : ${{ secrets.IFCOPENBOT_TOKEN }}
19+ path : ifctester_org_static_html
20+ - name : Build webapp
21+ working-directory : ./src/ifctester
1622 run : |
1723 sudo apt update && sudo apt install -y nodejs
18- make webapp-build
19- cd webapp/dist
2024 git config --global user.name 'IfcOpenBot'
2125 git config --global user.email 'IfcOpenBot@users.noreply.github.com'
22- git clone https://${{ secrets.GH_APIKEY }}@github.com/IfcOpenShell/ifctester_org_static_html
26+ make webapp-build
27+ - name : Commit and push
28+ run : |
29+ cp -r src/ifctester/webapp/dist/* ifctester_org_static_html/
2330 git -C ifctester_org_static_html add .
2431 git -C ifctester_org_static_html commit --allow-empty -m "$(git log --oneline -1)"
2532 git -C ifctester_org_static_html push
You can’t perform that action at this time.
0 commit comments