name: Validate and publish on: push: workflow_dispatch: concurrency: group: site cancel-in-progress: true jobs: site: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Get the challenge repository (specifications and tools) run: git clone --depth 1 --branch main https://vault1.magland.org/challenges/string 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 this repository's site run: python web/build.py --out site - 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