mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +00:00
CI: ignore gemini/ dir when deploying HTML
This commit is contained in:
parent
9740ccc38d
commit
1309534838
2 changed files with 4 additions and 3 deletions
|
@ -10,7 +10,7 @@ secrets:
|
||||||
triggers:
|
triggers:
|
||||||
- action: email
|
- action: email
|
||||||
condition: always
|
condition: always
|
||||||
to: Rohan Kumar <seirdy@seirdy.one>
|
to: seirdy@seirdy.one
|
||||||
tasks:
|
tasks:
|
||||||
- build: |
|
- build: |
|
||||||
cd seirdy.one
|
cd seirdy.one
|
||||||
|
|
|
@ -12,7 +12,9 @@ case "$1" in
|
||||||
gemini_prefix="$login:/home/seirdy/public_gemini"
|
gemini_prefix="$login:/home/seirdy/public_gemini"
|
||||||
;;
|
;;
|
||||||
localhost)
|
localhost)
|
||||||
|
www_prefix='/tmp/www/seeirdy.one'
|
||||||
gemini_prefix='/tmp/gemini/serve/seirdy.one'
|
gemini_prefix='/tmp/gemini/serve/seirdy.one'
|
||||||
|
mkdir -p "$www_prefix" "$gemini_prefix"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo 'must supply hostname' >&2
|
echo 'must supply hostname' >&2
|
||||||
|
@ -20,7 +22,6 @@ case "$1" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
[ "$1" != 'localhost' ] \
|
rsync -rvzP --exclude "gemini" --exclude "*.gmi" public/ "$www_prefix/"
|
||||||
&& rsync -rvzP --exclude "public/gemini" --exclude "*.gmi" public/ "$www_prefix/"
|
|
||||||
rsync -rvzP --exclude "*.html" public/gemini/ public/about public/posts "$gemini_prefix/"
|
rsync -rvzP --exclude "*.html" public/gemini/ public/about public/posts "$gemini_prefix/"
|
||||||
rsync -rvzP public/posts/gemini/index.xml "$gemini_prefix/feed.xml"
|
rsync -rvzP public/posts/gemini/index.xml "$gemini_prefix/feed.xml"
|
||||||
|
|
Loading…
Reference in a new issue