Build and publish timetables #41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and publish timetables | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 2 * * *" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| with: | |
| python-version: "3.14" | |
| - name: Build timetables | |
| run: uv run run_from_urls.py --urls urls.py --out dist | |
| - name: Disable Jekyll (GitHub Pages) | |
| run: touch dist/.nojekyll | |
| - name: Publish generated content to GitHub Pages | |
| uses: JamesIves/github-pages-deploy-action@releases/v3 | |
| with: | |
| FOLDER: dist | |
| BRANCH: gh-pages | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |