after some oopsies, should work #33427
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: Deploy to static server | |
| on: | |
| push: | |
| branches: | |
| - ep2024 | |
| - ep2025 | |
| - ep2026 | |
| schedule: | |
| - cron: "*/10 * * * *" # every 10 minutes | |
| workflow_dispatch: | |
| jobs: | |
| tests: | |
| name: Deploy to static server | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v6 | |
| - name: Set up Python 3 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.14' | |
| - name: Setup uv | |
| uses: astral-sh/setup-uv@v8.1.0 | |
| - name: Install dependencies from uv.lock | |
| run: uv run make deps/install | |
| - name: Download data | |
| run: uv run make download EXCLUDE="schedule youtube" > /dev/null 2>&1 | |
| env: | |
| PRETALX_TOKEN: ${{ secrets.PRETALX_TOKEN }} | |
| - name: Transform data | |
| run: uv run make transform EXCLUDE="schedule youtube" > /dev/null 2>&1 | |
| - name: Setup SSH | |
| uses: webfactory/ssh-agent@v0.9.1 | |
| with: | |
| ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
| - name: Adjust known_hosts | |
| run: ssh-keyscan "static.europython.eu" > ~/.ssh/known_hosts | |
| - name: Deploy | |
| run: uv run make deploy FORCE_DEPLOY=true |