mirror of
https://github.com/morluto/rea.git
synced 2026-11-08 07:46:28 +00:00
Prefer rea.tools in page canonicals and search listings. Generate the sitemap from current HTML indexing directives and render a shared PNG preview from SVG before verification and manual deployment. Refs #1283
44 lines
1.3 KiB
YAML
44 lines
1.3 KiB
YAML
name: Website checks
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main, "release/*"]
|
|
paths:
|
|
- "website/**"
|
|
- "scripts/*website*.py"
|
|
- ".github/workflows/**"
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: website-check-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
check:
|
|
name: Website checks
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- name: Check out the repository
|
|
uses: actions/checkout@v4
|
|
- name: Set up Python for website assets
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.12"
|
|
cache: pip
|
|
cache-dependency-path: website/requirements.txt
|
|
- name: Install sharing-image dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install --no-install-recommends -y libcairo2 fonts-dejavu-core
|
|
python3 -m pip install -r website/requirements.txt
|
|
- name: Prepare website assets
|
|
run: python3 scripts/prepare-website.py
|
|
- name: Check website links, metadata and publishing configuration
|
|
run: python3 scripts/verify-website.py
|
|
- name: Check sitemap discovery and metadata regressions
|
|
run: python3 scripts/test-website.py
|