Files
EurKEY-macOS/.github/workflows/website.yml
Felix Förtsch 18718e3424 add interactive keyboard viewer, fix parser, move spec PDF
interactive layout viewer with version tabs, modifier key highlighting,
dead key compositions, ISO enter spanning two rows, arrow cluster.
fix keylayout parser mapSet range handling, update PDF build scripts,
move eurkey-layout-complete.pdf to spec/.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 12:49:36 +01:00

51 lines
1.2 KiB
YAML

name: Deploy website
on:
workflow_dispatch:
push:
branches: [main]
paths:
- 'eurkey-macos.eu/**'
- 'src/keylayouts/**'
- 'fonts/**'
- 'scripts/generate_layout_pdf.py'
- 'scripts/parse_keylayout.py'
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Generate layout PDFs
run: |
pip install fpdf2
python3 scripts/generate_layout_pdf.py -o eurkey-macos.eu/pdf/
- name: Generate layout JSON
run: |
mkdir -p eurkey-macos.eu/data
for ver in v1.2 v1.3 v1.4 v2.0; do
python3 scripts/parse_keylayout.py "src/keylayouts/EurKEY ${ver}.keylayout" \
-o "eurkey-macos.eu/data/eurkey-${ver}.json"
done
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
with:
path: eurkey-macos.eu
- id: deployment
uses: actions/deploy-pages@v4