1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-09-19 20:02:10 +00:00

CI: ignore gemini/ dir when deploying HTML

This commit is contained in:
rohan kumar 2020-11-05 15:49:44 -08:00
parent 9740ccc38d
commit 1309534838
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
2 changed files with 4 additions and 3 deletions

View file

@ -10,7 +10,7 @@ secrets:
triggers:
- action: email
condition: always
to: Rohan Kumar <seirdy@seirdy.one>
to: seirdy@seirdy.one
tasks:
- build: |
cd seirdy.one

View file

@ -12,7 +12,9 @@ case "$1" in
gemini_prefix="$login:/home/seirdy/public_gemini"
;;
localhost)
www_prefix='/tmp/www/seeirdy.one'
gemini_prefix='/tmp/gemini/serve/seirdy.one'
mkdir -p "$www_prefix" "$gemini_prefix"
;;
*)
echo 'must supply hostname' >&2
@ -20,7 +22,6 @@ case "$1" in
;;
esac
[ "$1" != 'localhost' ] \
&& rsync -rvzP --exclude "public/gemini" --exclude "*.gmi" public/ "$www_prefix/"
rsync -rvzP --exclude "gemini" --exclude "*.gmi" public/ "$www_prefix/"
rsync -rvzP --exclude "*.html" public/gemini/ public/about public/posts "$gemini_prefix/"
rsync -rvzP public/posts/gemini/index.xml "$gemini_prefix/feed.xml"