From 7cba63af9c1584daf4e66c352e99a5f881ba751e Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Mon, 6 Oct 2025 23:15:16 +1100 Subject: [PATCH] Add IfcTester webapp workflow (#7209) --- .github/workflows/ci-ifctester-org.yml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci-ifctester-org.yml b/.github/workflows/ci-ifctester-org.yml index b19a761c7d..e5fef406c5 100644 --- a/.github/workflows/ci-ifctester-org.yml +++ b/.github/workflows/ci-ifctester-org.yml @@ -2,24 +2,31 @@ name: ci-ifctester-org on: workflow_dispatch: + push: + paths: + - src/ifctester/** jobs: - publish_websites: + publish_website: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 - - - working-directory: ./src/ifctester - env: - GH_APIKEY: ${{ secrets.GH_APIKEY }} - OSC_APIKEY: ${{ secrets.OSC_APIKEY }} + - name: Checkout ifctester_org_static_html + uses: actions/checkout@v4 + with: + repository: IfcOpenShell/ifctester_org_static_html + token: ${{ secrets.IFCOPENBOT_TOKEN }} + path: ifctester_org_static_html + - name: Build webapp + working-directory: ./src/ifctester run: | sudo apt update && sudo apt install -y nodejs - make webapp-build - cd webapp/dist 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/ifctester_org_static_html + make webapp-build + - name: Commit and push + run: | + cp -r src/ifctester/webapp/dist/* ifctester_org_static_html/ git -C ifctester_org_static_html add . git -C ifctester_org_static_html commit --allow-empty -m "$(git log --oneline -1)" git -C ifctester_org_static_html push