mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-10 00:12:09 +00:00
CI: Fix: forgot to update rsync flags
- Add --delete flag - replace "public/" with "$(OUT_DIR)"
This commit is contained in:
parent
0d227c238c
commit
8edc6bedb6
1 changed files with 5 additions and 4 deletions
9
Makefile
9
Makefile
|
@ -30,17 +30,18 @@ hugo:
|
||||||
hugo
|
hugo
|
||||||
|
|
||||||
build: hugo
|
build: hugo
|
||||||
|
# gzip_static + max zopfli compression
|
||||||
ifndef NO_GZIP_STATIC
|
ifndef NO_GZIP_STATIC
|
||||||
find $(OUTPUT_DIR) -type f -name '*.html' -o -name '*.css' -o -name '*.xml' -o -name '*.txt' \
|
find $(OUTPUT_DIR) -type f -name '*.html' -o -name '*.css' -o -name '*.xml' -o -name '*.txt' \
|
||||||
| grep -v gemini \
|
| grep -v gemini \
|
||||||
| xargs zopfli --i150 --gzip
|
| xargs zopfli --i50 --gzip
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
deploy: build
|
deploy: build
|
||||||
rsync $(RSYNCFLAGS) --exclude 'gemini' --exclude '*.gmi' --exclude-from .rsyncignore public/ $(WWW_RSYNC_DEST) --delete
|
rsync $(RSYNCFLAGS) --exclude 'gemini' --exclude '*.gmi' --exclude-from .rsyncignore $(OUTPUT_DIR)/ $(WWW_RSYNC_DEST) --delete
|
||||||
rsync $(RSYNCFLAGS) --exclude '*.html' --exclude '*.xml' --exclude-from .rsyncignore public/gemini/ public/about public/posts public/publickey.txt $(GEMINI_RSYNC_DEST)/
|
rsync $(RSYNCFLAGS) --exclude '*.html' --exclude '*.xml' --exclude-from .rsyncignore $(OUTPUT_DIR)/gemini/ $(OUTPUT_DIR)/about $(OUTPUT_DIR)/posts $(OUTPUT_DIR)/publickey.txt $(GEMINI_RSYNC_DEST)/ --delete
|
||||||
rsync $(RSYNCFLAGS) public/posts/gemini.xml $(GEMINI_RSYNC_DEST)/feed.xml
|
rsync $(RSYNCFLAGS) $(OUTPUT_DIR)/posts/gemini.xml $(GEMINI_RSYNC_DEST)/feed.xml
|
||||||
|
|
||||||
all: clean lint deploy
|
all: clean lint deploy
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue