Files
trail-mate/.github/workflows/pages.yml
vicliuandGitHub b2229138ed Tdeck (#24)
* fix(tracker): apply localized labels on tracker page

* feat: add runtime locale packs and font fallback

* release: prepare 0.1.19-alpha
2026-04-21 03:19:05 +08:00

74 lines
1.6 KiB
YAML

name: Pages
on:
push:
branches:
- main
paths:
- site/**
- packs/**
- docs/images/**
- scripts/build_pack_repository.py
- scripts/prepare_pages_site.py
- scripts/webflash_targets.py
- tools/generate_binfont_with_lv_font_conv.py
- tools/fonts/**
- .github/workflows/ci.yml
- .github/workflows/pages.yml
release:
types:
- published
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: github-pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.repository.default_branch }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Configure GitHub Pages
uses: actions/configure-pages@v5
- name: Prepare site assets
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python scripts/prepare_pages_site.py --site-root site --repo ${{ github.repository }}
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v4
with:
path: site
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4