Skip to content

Commit 7cba63a

Browse files
authored
Add IfcTester webapp workflow (#7209)
1 parent 3c1d6ab commit 7cba63a

1 file changed

Lines changed: 16 additions & 9 deletions

File tree

.github/workflows/ci-ifctester-org.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,31 @@ name: ci-ifctester-org
22

33
on:
44
workflow_dispatch:
5+
push:
6+
paths:
7+
- src/ifctester/**
58

69
jobs:
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

0 commit comments

Comments
 (0)