mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
Add IfcTester webapp workflow (#7209)
This commit is contained in:
@@ -2,24 +2,31 @@ name: ci-ifctester-org
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- src/ifctester/**
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish_websites:
|
publish_website:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
- name: Checkout ifctester_org_static_html
|
||||||
- working-directory: ./src/ifctester
|
uses: actions/checkout@v4
|
||||||
env:
|
with:
|
||||||
GH_APIKEY: ${{ secrets.GH_APIKEY }}
|
repository: IfcOpenShell/ifctester_org_static_html
|
||||||
OSC_APIKEY: ${{ secrets.OSC_APIKEY }}
|
token: ${{ secrets.IFCOPENBOT_TOKEN }}
|
||||||
|
path: ifctester_org_static_html
|
||||||
|
- name: Build webapp
|
||||||
|
working-directory: ./src/ifctester
|
||||||
run: |
|
run: |
|
||||||
sudo apt update && sudo apt install -y nodejs
|
sudo apt update && sudo apt install -y nodejs
|
||||||
make webapp-build
|
|
||||||
cd webapp/dist
|
|
||||||
git config --global user.name 'IfcOpenBot'
|
git config --global user.name 'IfcOpenBot'
|
||||||
git config --global user.email 'IfcOpenBot@users.noreply.github.com'
|
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 add .
|
||||||
git -C ifctester_org_static_html commit --allow-empty -m "$(git log --oneline -1)"
|
git -C ifctester_org_static_html commit --allow-empty -m "$(git log --oneline -1)"
|
||||||
git -C ifctester_org_static_html push
|
git -C ifctester_org_static_html push
|
||||||
|
|||||||
Reference in New Issue
Block a user