File tree Expand file tree Collapse file tree 6 files changed +851
-17
lines changed
Expand file tree Collapse file tree 6 files changed +851
-17
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy AI chat App to static page repo
2+
3+ permissions :
4+ id-token : write
5+ pages : write
6+
7+ on :
8+ push :
9+ paths :
10+ - ' src/ifcchat/**'
11+ - ' .github/workflows/publish-aichat-app.yaml'
12+ branches :
13+ - v0.8.0
14+
15+ jobs :
16+ activate :
17+ runs-on : ubuntu-latest
18+ if : |
19+ github.repository == 'IfcOpenShell/IfcOpenShell'
20+ steps :
21+ - name : Set env
22+ run : echo ok go
23+
24+ build :
25+ needs : activate
26+ runs-on : ubuntu-latest
27+ steps :
28+ - name : Checkout (recursive)
29+ uses : actions/checkout@v6
30+ with :
31+ submodules : recursive
32+ fetch-depth : 0
33+ - name : Checkout intermediate Pages repo
34+ uses : actions/checkout@v4
35+ with :
36+ repository : IfcOpenShell/aichat_ifcopenshell_org_static_html
37+ ref : gh-pages
38+ path : output
39+ token : ${{ secrets.WEBSITE_PUBLISH }}
40+ - name : Sync demo app into target subfolder
41+ run : |
42+ rsync -av --delete src/ifcchat/ output/app
43+ - name : Setup Python
44+ uses : actions/setup-python@v5
45+ with :
46+ python-version : " 3.x"
47+ - name : Download wheels
48+ working-directory : output
49+ run : |
50+ pip download ifcquery==0.8.5 ifcopenshell-mcp==0.8.5 ifcedit==0.8.5 lark==1.3.1 isodate==0.7.2 --no-deps -d ./dist
51+ - name : Commit and push if changed
52+ working-directory : output
53+ run : |
54+ git config --global user.name 'IfcOpenBot'
55+ git config --global user.email 'IfcOpenBot@users.noreply.github.com'
56+
57+ git add .
58+ if git diff --cached --quiet; then
59+ echo "No changes to commit"
60+ exit 0
61+ fi
62+
63+ git -m "$(git log --oneline -1)"
64+ git push origin gh-pages
65+ git push
Original file line number Diff line number Diff line change 1- name : Deploy Pyodide Demo App to GitHub Pages
1+ name : Deploy Pyodide Demo App to static page repo
22
33permissions :
44 id-token : write
@@ -30,21 +30,28 @@ jobs:
3030 with :
3131 submodules : recursive
3232 fetch-depth : 0
33- - name : Setup Pages
34- uses : actions/configure-pages@v6
35- - name : Upload static files as artifact
36- id : deployment
37- uses : actions/upload-pages-artifact@v4
33+ - name : Checkout intermediate Pages repo
34+ uses : actions/checkout@v4
3835 with :
39- path : src/pyodide/demo-app/
36+ repository : IfcOpenShell/wasm_ifcopenshell_org_static_html
37+ ref : gh-pages
38+ path : output
39+ token : ${{ secrets.WEBSITE_PUBLISH }}
40+ - name : Sync demo app into target subfolder
41+ run : |
42+ rsync -av --delete src/pyodide/demo-app/ output/app
43+ - name : Commit and push if changed
44+ working-directory : output
45+ run : |
46+ git config --global user.name 'IfcOpenBot'
47+ git config --global user.email 'IfcOpenBot@users.noreply.github.com'
4048
41- deploy :
42- environment :
43- name : github-pages
44- url : ${{ steps.deployment.outputs.page_url }}
45- runs-on : ubuntu-latest
46- needs : build
47- steps :
48- - name : Deploy to GitHub Pages
49- id : deployment
50- uses : actions/deploy-pages@v5
49+ git add .
50+ if git diff --cached --quiet; then
51+ echo "No changes to commit"
52+ exit 0
53+ fi
54+
55+ git -m "$(git log --oneline -1)"
56+ git push origin gh-pages
57+ git push
Original file line number Diff line number Diff line change 1+ IfcOpenShell AI Assistant
2+ =========================
3+
4+ A web-based client-side (pyodide + OpenAI API) model interrogation and generation API based on: ifcedit, ifcquery and ifcmcp (ifcopenshell-mcp) packaged in a HTML+JS application.
5+
6+ ### Setup instructions
7+
8+ ```
9+ pip download ifcquery==0.8.5 ifcopenshell-mcp==0.8.5 ifcedit==0.8.5 lark==1.3.1 isodate==0.7.2 --no-deps -d ./dist
10+ ```
You can’t perform that action at this time.
0 commit comments