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