From 2fbd898f1d46ea86d473426dcc72ec6f82ad655c Mon Sep 17 00:00:00 2001 From: luocai Date: Fri, 1 Nov 2024 10:48:50 +0800 Subject: [PATCH] correct path. --- .gitea/workflows/deploy.yaml | 2 +- {resource => resources}/act_runner.sh | 0 {resource => resources}/build.sh | 0 {resource => resources}/deploy.sh | 4 ++-- {resource => resources}/frps.service | 0 {resource => resources}/openresty.service | 0 6 files changed, 3 insertions(+), 3 deletions(-) rename {resource => resources}/act_runner.sh (100%) rename {resource => resources}/build.sh (100%) rename {resource => resources}/deploy.sh (93%) rename {resource => resources}/frps.service (100%) rename {resource => resources}/openresty.service (100%) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 2284bae..caa7fab 100755 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -38,7 +38,7 @@ jobs: echo "提交ID: $(git rev-parse --short HEAD)">> notify.tpl echo -n "提交消息: ${{ github.event.head_commit.message }}">> notify.tpl cat notify.tpl | envsubst | jq -sR . | xargs -0 -I {} curl -H "Content-Type: application/json" -X POST -d '{"type":"text","msg":{} }' https://amass.fun/notify - - run: resource/build.sh build + - run: resources/build.sh build - name: Notify-End if: ${{ always() }} run: | diff --git a/resource/act_runner.sh b/resources/act_runner.sh similarity index 100% rename from resource/act_runner.sh rename to resources/act_runner.sh diff --git a/resource/build.sh b/resources/build.sh similarity index 100% rename from resource/build.sh rename to resources/build.sh diff --git a/resource/deploy.sh b/resources/deploy.sh similarity index 93% rename from resource/deploy.sh rename to resources/deploy.sh index b6498d2..5d69d81 100755 --- a/resource/deploy.sh +++ b/resources/deploy.sh @@ -20,8 +20,8 @@ EOF function init() { echo "start deploy server" - scp -P $SERVER_PORT resource/openresty.service $USER@$SERVER_ADDRESS:/lib/systemd/system/openresty.service - scp -P $SERVER_PORT resource/frps.service $USER@$SERVER_ADDRESS:/etc/systemd/system/frps.service + scp -P $SERVER_PORT resources/openresty.service $USER@$SERVER_ADDRESS:/lib/systemd/system/openresty.service + scp -P $SERVER_PORT resources/frps.service $USER@$SERVER_ADDRESS:/etc/systemd/system/frps.service ssh $USER@$SERVER_ADDRESS -p $SERVER_PORT <