chore: Add [script] to deploy recipe

Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
Awiteb
2025-08-13 16:58:02 +00:00
parent dd05e050cd
commit 629de42215

View File

@@ -87,13 +87,14 @@ release version:
cargo publish cargo publish
# Deploy the book to Github Pages # Deploy the book to Github Pages
[script]
deploy: deploy:
mdbook build --dest-dir {{ BOOK_DEST_DIR }} mdbook build --dest-dir {{ BOOK_DEST_DIR }}
cd {{ BOOK_DEST_DIR }} cd {{ BOOK_DEST_DIR }}
git init . git init .
git checkout -B gh-pages git checkout -B gh-pages
touch ".nojekyll" touch ".nojekyll"
echo "n34.dev" > "CNAME" echo "n34.dev" out> "CNAME"
git add . git add .
git commit -m "Deploy the book to github pages" git commit -m "Deploy the book to github pages"