doc: introduction: add xdp & style tweaks. #254
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: website | |
on: | |
push: | |
branches: [ "main" ] | |
paths: | |
- "site/**" | |
pull_request: | |
branches: [ "main" ] | |
paths: | |
- "site/**" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: cache | |
uses: actions/cache@v4 | |
with: | |
# ./tmp is cached for htmltest | |
path: | | |
./site/tmp | |
key: ${{ runner.os }}-${{ hashFiles('./Makefile') }} | |
- name: lint cjk | |
run: | | |
if ! make lint-cjk; then | |
echo "Please run 'make fix-cjk', edit the detected files and commit changes." | |
exit 1 | |
fi | |
- name: build | |
working-directory: ./site | |
run: | | |
set -euo pipefail | |
make build | |
make publish | |
- name: lint | |
run: | | |
make lint-website |