diff --git a/restart.sh b/restart.sh new file mode 100644 index 0000000..573efd2 --- /dev/null +++ b/restart.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +JOB_ID="$(curl https://git.ajet.fyi/api/v1/repos/ajet-industries/blog?limit=1 -H "Content-Type: application/json" | jq '.id)' + +rm -rf /var/www/html/* +curl https://git.ajet.fyi/ajet-industries/blog/actions/runs/9/artifacts/blog --output /var/www/html +unzip /var/www/html/blog +rm /var/www/html/blog +systemctl restart nginx