#!/usr/bin/env bash
-# Executed over ssh on sr.ht CI/CD for my websites
+# Executed over SSH on builds.sr.ht for my websites
gitrun() {
git -C $dir reset --hard
git -C $dir clean -fxd
- git -C $dir pull --ff-only
+ git -C $dir pull --rebase
}
if [[ $1 == "gemini" ]]; then
elif [[ $1 == "http" ]]; then
dir=/var/www/armaanb.net-http
gitrun
- (cd /var/www/armaanb.net-http ; bash rss-gen)
+ (cd /var/www/armaanb.net-http ; bash bin/web-gen)
fi