update action
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m23s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m23s
This commit is contained in:
parent
0f10d18507
commit
33615b11b3
@ -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 }}."
|
2
build.sh
2
build.sh
@ -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/
|
Loading…
x
Reference in New Issue
Block a user