c689df2Add kirchhoff-bfs submission for plate-strike-v1 (meshes 4 to 48), field export via LFS, and this repository's site with a 3D field viewerJeremy Magland 1name: Validate and publish
2on:
3 push:
4 workflow_dispatch:
5concurrency:
6 group: site
7 cancel-in-progress: true
8jobs:
9 site:
10 runs-on: ubuntu-latest
11 steps:
12 - uses: actions/checkout@v4
13 - name: Fetch LFS objects (field exports), if git-lfs is available
14 run: git lfs version && git lfs pull || echo "git-lfs unavailable or pull failed; field files may be pointers"
15 - name: Get the challenge repository (specifications)
16 run: git clone --depth 1 --branch main https://vault1.magland.org/challenges/plate challenge-repo
17 - uses: actions/setup-python@v5
18 with:
19 python-version: '3.12'
20 - run: pip install git+https://vault1.magland.org/challenges/challenge-tools
21 - name: Validate submissions
22 run: challenge-tools validate --challenges challenge-repo/challenges --solutions solutions
23 - name: Build this repository's site
24 run: python web/build.py --out site
25 - if: github.ref == 'refs/heads/main'
26 uses: actions/configure-pages@v4
27 - if: github.ref == 'refs/heads/main'
28 uses: actions/upload-pages-artifact@v3
29 with:
30 path: site
31 - if: github.ref == 'refs/heads/main'
32 uses: actions/deploy-pages@v4