Skip to content

Deploy to static server #387

Deploy to static server

Deploy to static server #387

Workflow file for this run

name: Deploy to static server
on:
push:
branches:
- "plc2025"
schedule:
- cron: "0 0 * * *" # every day at midnight
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Check out repository
uses: actions/checkout@v5
- name: Set up Python 3
uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Set up uv
uses: astral-sh/setup-uv@v7
- name: Download data
run: uv run make download EXCLUDE="youtube" > /dev/null 2>&1
env:
PRETALX_TOKEN: ${{ secrets.PRETALX_TOKEN }}
- name: Transform data
run: uv run make transform EXCLUDE="youtube" > /dev/null 2>&1
- name: Create index.html
run: |
cat > data/public/plc25/index.html <<'EOF'
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>PyLadiesCon 2025 Program Data</title>
</head>
<body>
<h1>PyLadiesCon 2025 Program Data</h1>
<ul>
<li><a href="/sessions.json">sessions.json</a></li>
<li><a href="/speakers.json">speakers.json</a></li>
<li><a href="/schedule.json">schedule.json</a></li>
</ul>
</body>
</html>
EOF
- name: Upload site artifact
uses: actions/upload-pages-artifact@v4
with:
path: data/public/plc25
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4