Skip to content

Latest commit

 

History

History
60 lines (46 loc) · 1.11 KB

README.md

File metadata and controls

60 lines (46 loc) · 1.11 KB

sonata

sonata ci

Usage

cargo install sonata
sonata init blog
sonata serve blog

The minimal directory layout is like below, see sonata.toml for the full configuration.

my-blog
├── sonata.toml
└── posts
    └── 2024-01-01-hello-world.md

Github Action

name: sonata

on:
  push:
    branches: [main]

jobs:
  deploy:
    name: Deploy
    runs-on: ubuntu-22.04
    permissions:
      contents: write
    steps:
      - uses: actions/checkout@v4
      - uses: clearloop/[email protected]

      - name: Build the site
        run: sonata build blog

      - name: Deploy
        uses: peaceiris/actions-gh-pages@v3
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          publish_dir: ./blog/out

LICENSE

GPL-3.0-only