2024-06-08 21:47:50 +03:00
|
|
|
.PHONY: all build deploy
|
2024-05-07 21:56:17 +03:00
|
|
|
|
2024-06-08 21:47:50 +03:00
|
|
|
all: deps build deploy
|
|
|
|
|
|
|
|
deps:
|
|
|
|
export CGO_ENABLED=1
|
|
|
|
go install -tags extended github.com/gohugoio/hugo@latest
|
|
|
|
go install gitrepo.ru/neonxp/hugoext@v1.1.0
|
|
|
|
go install gitrepo.ru/neonxp/md2gmi@v1.1.0
|
2024-05-07 21:56:17 +03:00
|
|
|
|
|
|
|
build:
|
2024-06-08 21:47:50 +03:00
|
|
|
hugo --minify
|
|
|
|
hugoext -ext gmi -pipe md2gmi
|
2024-05-07 21:56:17 +03:00
|
|
|
|
2024-06-08 21:47:50 +03:00
|
|
|
deploy: build
|
|
|
|
rsync -a -P --delete ./public/ neonxp.ru:/var/www/neonxp.ru/
|