1name: Results
2on:
3 push:
4 workflow_dispatch:
5concurrency:
6 group: results
7 cancel-in-progress: true
8jobs:
9 results:
10 runs-on: ubuntu-latest
11 steps:
12 - uses: actions/checkout@v4
13 - name: Check out the challenge repository
14 uses: actions/checkout@v4
15 with:
16 repository: challenges/string
17 ref: main
18 path: challenge-repo
19 - uses: actions/setup-python@v5
20 with:
21 python-version: '3.12'
22 - run: pip install ./challenge-repo
23 - name: Validate submissions
24 run: challenge-tools validate --challenges challenge-repo/challenges --solutions solutions
25 - name: Build results site
26 run: >
27 challenge-tools build --challenges challenge-repo/challenges --solutions solutions --out site
28 --challenge-repo-url https://vault1.magland.org/challenges/string
29 --solutions-repo-url https://vault1.magland.org/challenges/string-solutions
30 - if: github.ref == 'refs/heads/main'
31 uses: actions/configure-pages@v4
32 - if: github.ref == 'refs/heads/main'
33 uses: actions/upload-pages-artifact@v3
34 with:
35 path: site
36 - if: github.ref == 'refs/heads/main'
37 uses: actions/deploy-pages@v4