mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-06 07:51:47 +00:00
90bd7d26ac
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
66 lines
1.7 KiB
YAML
66 lines
1.7 KiB
YAML
name: Deploy AI chat App to static page repo
|
|
|
|
permissions:
|
|
id-token: write
|
|
pages: write
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'src/ifcchat/**'
|
|
- '.github/workflows/publish-aichat-app.yaml'
|
|
branches:
|
|
- v0.8.0
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
activate:
|
|
runs-on: ubuntu-latest
|
|
if: |
|
|
github.repository == 'IfcOpenShell/IfcOpenShell'
|
|
steps:
|
|
- name: Set env
|
|
run: echo ok go
|
|
|
|
build:
|
|
needs: activate
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout (recursive)
|
|
uses: actions/checkout@v6
|
|
with:
|
|
submodules: recursive
|
|
fetch-depth: 0
|
|
- name: Checkout intermediate Pages repo
|
|
uses: actions/checkout@v6
|
|
with:
|
|
repository: IfcOpenShell/aichat_ifcopenshell_org_static_html
|
|
ref: gh-pages
|
|
path: output
|
|
token: ${{ secrets.WEBSITE_PUBLISH }}
|
|
- name: Sync demo app into target subfolder
|
|
run: |
|
|
rsync -av --delete --exclude='.git/' src/ifcchat/ output/
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.x"
|
|
- name: Download wheels
|
|
working-directory: output/
|
|
run: |
|
|
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
|
|
- name: Commit and push if changed
|
|
working-directory: output
|
|
run: |
|
|
git config --global user.name 'IfcOpenBot'
|
|
git config --global user.email 'IfcOpenBot@users.noreply.github.com'
|
|
|
|
git add .
|
|
if git diff --cached --quiet; then
|
|
echo "No changes to commit"
|
|
exit 0
|
|
fi
|
|
|
|
git commit -m "$(git log --oneline -1)"
|
|
git push origin gh-pages
|