mirror of
https://github.com/mfocko/blog.git
synced 2024-11-22 13:03:47 +01:00
ci: rework and document makefile
Signed-off-by: Matej Focko <xfocko@fi.muni.cz>
This commit is contained in:
parent
5e0cfc567b
commit
622ac2463b
1 changed files with 24 additions and 9 deletions
33
makefile
33
makefile
|
@ -1,20 +1,35 @@
|
||||||
dev: regenerate-dots regenerate-zips
|
OUTPUT_DIR=public
|
||||||
|
|
||||||
|
# Development
|
||||||
|
dev: assets
|
||||||
URL=http://localhost BASE_URL=/ yarn run start --no-open
|
URL=http://localhost BASE_URL=/ yarn run start --no-open
|
||||||
|
|
||||||
deploy-aisa:
|
# Build the webpage
|
||||||
URL="https://fi.muni.cz" BASE_URL="~xfocko/kb/" yarn run build
|
build-aisa: assets
|
||||||
rsync -avzrlpptv --delete build/ aisa:~/public_html/kb/
|
URL="https://fi.muni.cz" BASE_URL="~xfocko/kb/" yarn run build --out-dir $(OUTPUT_DIR)
|
||||||
|
|
||||||
deploy-poincare:
|
build-poincare: assets
|
||||||
URL="https://blog.mfocko.xyz" BASE_URL="/" yarn run build
|
URL="https://blog.mfocko.xyz" BASE_URL="/" yarn run build --out-dir $(OUTPUT_DIR)
|
||||||
rsync -avzrlpptv --delete build/ poincare:~/public_html/blog/
|
|
||||||
|
|
||||||
deploy: regenerate-dots regenerate-zips deploy-aisa deploy-poincare
|
# Upload the built webpage
|
||||||
|
deploy-aisa: build-aisa
|
||||||
|
rsync -avzrlpptv --delete $(OUTPUT_DIR)/ aisa:~/public_html/kb/
|
||||||
|
|
||||||
|
deploy-poincare: build-poincare
|
||||||
|
rsync -avzrlpptv --delete $(OUTPUT_DIR)/ poincare:~/public_html/blog/
|
||||||
|
|
||||||
|
# Build assets that are generated from the git, but not version-controlled
|
||||||
|
assets: regenerate-dots regenerate-zips
|
||||||
|
|
||||||
|
# Regenerates dotfiles that are rendered to SVG
|
||||||
regenerate-dots:
|
regenerate-dots:
|
||||||
sh regenerate-dots.sh
|
sh regenerate-dots.sh
|
||||||
|
|
||||||
|
# Regenerates ZIP files with static content, e.g. source files
|
||||||
regenerate-zips:
|
regenerate-zips:
|
||||||
sh regenerate-zips.sh
|
sh regenerate-zips.sh
|
||||||
|
|
||||||
.PHONY: deploy-aisa deploy-poincare regenerate-dots regenerate-zips
|
# Deploys
|
||||||
|
deploy: deploy-aisa deploy-poincare
|
||||||
|
|
||||||
|
.PHONY: dev deploy-aisa deploy-poincare assets regenerate-dots regenerate-zips
|
||||||
|
|
Loading…
Reference in a new issue