mirror of
https://github.com/felixfoertsch/EurKEY-macOS.git
synced 2026-04-17 23:18:28 +02:00
track src/, fonts/ as project source, replace Hugo with static website
- commit keylayouts, icons, lproj, Iosevka fonts - remove Hugo, build static site (HTML + CSS + vanilla JS) - CI workflow generates layout PDFs, deploys to GitHub Pages
This commit is contained in:
42
.github/workflows/website.yml
vendored
Normal file
42
.github/workflows/website.yml
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
name: Deploy website
|
||||
|
||||
on:
|
||||
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/
|
||||
- uses: actions/configure-pages@v5
|
||||
- uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: eurkey-macos.eu
|
||||
- id: deployment
|
||||
uses: actions/deploy-pages@v4
|
||||
Reference in New Issue
Block a user