update action
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m23s

This commit is contained in:
moonlightwatch 2025-03-26 16:06:15 +08:00
parent 0f10d18507
commit 33615b11b3
2 changed files with 11 additions and 2 deletions

View File

@ -13,7 +13,16 @@ jobs:
uses: actions/checkout@v3
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
- name: List files in the repository ${{ gitea.workspace }}
run: |
ls ${{ gitea.workspace }}
# - run: chmod u+x ${{ gitea.workspace }}/hugo
# rm -rf public
# ./hugo build
# ssh -i ./id_rsa root@116.204.65.205 "rm -rf /opt/1panel/apps/openresty/openresty/www/sites/blog.xn--ghqz22d40r52n.com/index/*"
# scp -r -i ./id_rsa ./public/* root@116.204.65.205:/opt/1panel/apps/openresty/openresty/www/sites/blog.xn--ghqz22d40r52n.com/index/
- run: echo "🍏 This job's status is ${{ job.status }}."

View File

@ -6,6 +6,6 @@ rm -rf public
./hugo build
ssh root@116.204.65.205 "rm -rf /opt/1panel/apps/openresty/openresty/www/sites/blog.xn--ghqz22d40r52n.com/index/*"
ssh -i ./id_rsa root@116.204.65.205 "rm -rf /opt/1panel/apps/openresty/openresty/www/sites/blog.xn--ghqz22d40r52n.com/index/*"
scp -r -i ./id_rsa ./public/* root@116.204.65.205:/opt/1panel/apps/openresty/openresty/www/sites/blog.xn--ghqz22d40r52n.com/index/