blog/Justfile
Awiteb ed23c00747
Change the origin remote with github
This because we are no more in GitHub, but we are use it
for hosing our pages
2024-03-04 16:34:41 +03:00

20 lines
536 B
Makefile

OUT_DIR := "public"
@build:
zola build -o {{OUT_DIR}} --force
@deploy: build
#!/usr/bin/env bash
cd {{OUT_DIR}}
git init .
git checkout -B gh-pages
touch .nojekyll
git add .
git commit -m "Deploy blog to github pages"
git remote add origin $(git --git-dir ../.git remote get-url github)
git push origin gh-pages -f
cd ..
rm -fr {{OUT_DIR}}
@install-tools:
echo "Run: `curl -s -L https://github.com/getzola/zola/releases/download/v0.18.0/zola-v0.18.0-x86_64-unknown-linux-gnu.tar.gz | sudo tar xvzf - -C /usr/local/bin`"