initial commit
All checks were successful
Build and deploy static pages / build-and-push (push) Successful in 15s

This commit is contained in:
2026-08-17 17:41:07 +02:00
commit f6ac0722e9
13 changed files with 404 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
name: Build and deploy static pages
on:
push:
branches: [main]
env:
COOKCLI_VERSION: v0.33.1
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install CookCLI
run: |
mkdir -p "$HOME/.local/bin"
curl -fsSL "https://github.com/cooklang/CookCLI/releases/download/${COOKCLI_VERSION}/cook-x86_64-unknown-linux-musl.tar.gz" \
| tar -xz -C "$HOME/.local/bin"
chmod +x "$HOME/.local/bin/cook"
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
- name: Build site
run: |
cook --version
cook build web site \
--lang fr-FR \
--repo-url https://git.sqrt.fr/vincent/recipes \
--sitemap https://pub.sqrt.fr/vincent/recipes
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force_orphan: true
publish_dir: site