add restart
All checks were successful
Deploy ${{ gitea.repository }} / build (push) Successful in 59s
All checks were successful
Deploy ${{ gitea.repository }} / build (push) Successful in 59s
This commit is contained in:
parent
97c0008c42
commit
dc0940caa5
9
restart.sh
Normal file
9
restart.sh
Normal file
@ -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
|
||||||
Loading…
x
Reference in New Issue
Block a user