set up forgejo actions
All checks were successful
/ test (push) Successful in 35s

This commit is contained in:
Robert Perce 2025-12-01 22:10:28 -06:00
parent d925573629
commit 4f611b9544
3 changed files with 47 additions and 3 deletions

View file

@ -35,8 +35,8 @@ deploy_to_server() {
where="$1"
_cargo build --release
rsync -v -essh ./target/release/mascarpone "$where:~" \
&& rsync -rav -essh ./hashed_static "$where:~/static" \
&& ssh -t "$where" "sudo mv -f mascarpone /usr/bin/ && sudo rm -rf /var/local/mascarpone/static && sudo mv -f static /var/local/mascarpone/ && sudo systemctl restart mascarpone"
&& rsync -rav -essh ./hashed_static "$where:~/" \
&& ssh -t "$where" "sudo mv -f mascarpone /usr/bin/ && sudo rm -rf /var/local/mascarpone/hashed_static && sudo mv -f hashed_static /var/local/mascarpone/ && sudo systemctl restart mascarpone"
}
dev() {