name: Results on: push: workflow_dispatch: concurrency: group: results cancel-in-progress: true jobs: results: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Check out the challenge repository uses: actions/checkout@v4 with: repository: challenges/string ref: main path: challenge-repo - uses: actions/setup-python@v5 with: python-version: '3.12' - run: pip install ./challenge-repo - name: Validate submissions run: challenge-tools validate --challenges challenge-repo/challenges --solutions solutions - name: Build results site run: > challenge-tools build --challenges challenge-repo/challenges --solutions solutions --out site --challenge-repo-url https://vault1.magland.org/challenges/string --solutions-repo-url https://vault1.magland.org/challenges/string-solutions - if: github.ref == 'refs/heads/main' uses: actions/configure-pages@v4 - if: github.ref == 'refs/heads/main' uses: actions/upload-pages-artifact@v3 with: path: site - if: github.ref == 'refs/heads/main' uses: actions/deploy-pages@v4