yaak 0.1.5

Translate natural language to bash commands using an OpenAI-compatible LLM
name: Deploy Landing Site

on:
  push:
    branches: [main]
    paths:
      - "Cargo.toml"
      - "CHANGELOG.md"
      - "blog/**"
      - "demos/output/**"
      - "landing/**"
      - "scripts/build_changelog.py"
      - "scripts/build_blog.py"
      - "scripts/copy_assets.py"
      - "scripts/inject_version.py"
      - ".github/workflows/pages.yml"
  release:
    types: [published]

permissions:
  contents: read
  pages: write
  id-token: write

concurrency:
  group: pages
  cancel-in-progress: true

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Set up Python
        uses: actions/setup-python@v5
        with:
          python-version: "3.12"

      - name: Build changelog.html
        run: python scripts/build_changelog.py

      - name: Build blog
        run: python scripts/build_blog.py

      - name: Copy static assets
        run: python scripts/copy_assets.py

      - name: Inject CLI version
        run: python scripts/inject_version.py

      - name: Upload Pages artifact
        uses: actions/upload-pages-artifact@v3
        with:
          path: landing

  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