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-06-24 00:59:26 +03:00
|
|
|
go install evgenykuznetsov.org/go/static-webmentions@latest
|
2024-05-07 21:56:17 +03:00
|
|
|
|
|
|
|
build:
|
2024-06-24 00:59:26 +03:00
|
|
|
hugo --minify --gc -d public
|
2024-06-08 21:47:50 +03:00
|
|
|
hugoext -ext gmi -pipe md2gmi
|
2024-06-24 00:59:26 +03:00
|
|
|
# static-webmentions -b https://neonxp.ru
|
2024-05-07 21:56:17 +03:00
|
|
|
|
2024-06-08 21:47:50 +03:00
|
|
|
deploy: build
|
2024-06-24 00:59:26 +03:00
|
|
|
rsync -a -P --delete ./public/ neonxp@neonxp.ru:/var/www/neonxp.ru/
|