add public html to makefile
Gitea Actions Demo / Deploy (push) Successful in 2m4s Details

This commit is contained in:
Carneiro 2024-08-05 14:55:32 -03:00
parent 231b2e975a
commit 5049059cc2
1 changed files with 12 additions and 3 deletions

View File

@ -13,8 +13,13 @@ SRC_DIR_FLAGS = --source=${SRC_PATH}
BUILD_FLAGS = --trace --incremental BUILD_FLAGS = --trace --incremental
SERVE_FLAGS = -H 0.0.0.0 -P 33002 SERVE_FLAGS = -H 0.0.0.0 -P 33002
all: all: build
sg www-data -c "${JEKYLL_CMD} build ${BUILD_FLAGS} ${SRC_DIR_FLAGS} ${DEST_DIR_FLAGS}"
deploy: build
sg www-data -c "install -dm775 _site ${DEST_PATH}"
build:
${JEKYLL_CMD} build --trace
# Executa o build toda vez que muda um arquivo # Executa o build toda vez que muda um arquivo
# Rodando como serviço do systemd em /etc/systemd/system/alicecast-build-watch.service # Rodando como serviço do systemd em /etc/systemd/system/alicecast-build-watch.service
@ -25,5 +30,9 @@ watch:
serve: serve:
${JEKYLL_CMD} serve ${SRC_DIR_FLAGS} ${SERVE_FLAGS} ${JEKYLL_CMD} serve ${SRC_DIR_FLAGS} ${SERVE_FLAGS}
public_html:
${JEKYLL_CMD} build {BUILD_FLAGS} --destination=~/public_html/aliceclass -w
clean: clean:
rm -rf ${DEST_PATH}/* rm -rf _site
# rm -rf ${DEST_PATH}/*