update: action script
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m56s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m56s
This commit is contained in:
parent
3a79899061
commit
ea54fb587f
@ -9,8 +9,8 @@ jobs:
|
||||
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- run: cd ${{ gitea.workspace }} && chmod u+x hugo
|
||||
- run: cd ${{ gitea.workspace }} && chmod 600 id_rsa
|
||||
- run: cd ${{ gitea.workspace }} && ./hugo build
|
||||
- run: cd ${{ gitea.workspace }} && ssh -o StrictHostKeyChecking=no -i ./id_rsa root@116.204.65.205 "rm -rf /opt/1panel/apps/openresty/openresty/www/sites/blog.xn--ghqz22d40r52n.com/index/*"
|
||||
- run: cd ${{ gitea.workspace }} && scp -o StrictHostKeyChecking=no -r -i ./id_rsa ./public/* root@116.204.65.205:/opt/1panel/apps/openresty/openresty/www/sites/blog.xn--ghqz22d40r52n.com/index/
|
||||
|
Loading…
x
Reference in New Issue
Block a user