mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +00:00
CI: Only gzip when deploying to seirdy.one
Only seirdy.one uses gzip_static
This commit is contained in:
parent
3474c2d5f4
commit
970fa0e057
1 changed files with 13 additions and 5 deletions
18
deploy.sh
18
deploy.sh
|
@ -22,9 +22,17 @@ case "$1" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
find public -type f -name '*.html' -o -name '*.css' -o -name '*.xml' -o -name '*.txt' \
|
# I use gzip_static with nginx
|
||||||
| grep -v gemini \
|
if [ "$1" = 'seirdy.one' ]; then
|
||||||
| xargs zopfli
|
find public -type f -name '*.html' -o -name '*.css' -o -name '*.xml' -o -name '*.txt' \
|
||||||
rsync -avzP --exclude 'gemini' --exclude '*.gmi' --exclude 'misc/' --exclude 'music.txt' --exclude '.well-known' public/ "$www_prefix/" --delete
|
| grep -v gemini \
|
||||||
rsync -avzP --exclude '*.html' --exclude 'misc/' --exclude 'music.txt' public/gemini/ public/about public/posts "$gemini_prefix/" --delete
|
| xargs zopfli
|
||||||
|
fi
|
||||||
|
|
||||||
|
rsync -avzP \
|
||||||
|
--exclude 'gemini' --exclude '*.gmi' --exclude 'misc/' --exclude 'music.txt' --exclude '.well-known' \
|
||||||
|
public/ "$www_prefix/" --delete
|
||||||
|
rsync -avzP \
|
||||||
|
--exclude '*.html' --exclude 'misc/' --exclude 'music.txt' \
|
||||||
|
public/gemini/ public/about public/posts "$gemini_prefix/" --delete
|
||||||
rsync -avzP public/posts/gemini.xml "$gemini_prefix/feed.xml"
|
rsync -avzP public/posts/gemini.xml "$gemini_prefix/feed.xml"
|
||||||
|
|
Loading…
Reference in a new issue