Skip to content

feat: Socratic Code Theory Recovery card and sctr shortlink #11

feat: Socratic Code Theory Recovery card and sctr shortlink

feat: Socratic Code Theory Recovery card and sctr shortlink #11

Workflow file for this run

name: Build and deploy site
on:
push:
branches: [main]
pull_request:
schedule: # GitHub pauses this after 60 days without repo activity; re-enable in the Actions tab
- cron: "17 4 * * *" # daily, picks up new repos and descriptions
workflow_dispatch:
permissions:
contents: read
concurrency:
group: pages-${{ github.ref }}
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.12"
- run: pip install -r requirements.txt
- run: python -m pytest -q
- run: python generate.py --out _site
env:
GH_TOKEN: ${{ github.token }}
- uses: actions/upload-pages-artifact@v5
with:
path: _site
deploy:
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v5