deploy libraries.
Some checks failed
Deploy Docker Images / Build dockerfile and Server deploy (push) Successful in 15s
Deploy / Build (push) Failing after 2m6s

This commit is contained in:
amass 2024-11-09 22:24:29 +08:00
parent 82e6154b3a
commit 72ab9712bd

View File

@ -31,6 +31,14 @@ jobs:
echo -n "提交消息: ${{ github.event.head_commit.message }}">> 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 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: resources/build.sh build - run: resources/build.sh build
- name: Stop server
uses: appleboy/ssh-action@v0.1.3
with:
host: ${{ vars.YUYUN_SERVER }}
username: ${{ vars.YUYUN_USER }}
password: ${{ secrets.SERVER_ROOT_PASSWORD }}
script: |
pkill -f HttpServer || true
- name: Copy files to server - name: Copy files to server
uses: appleboy/scp-action@v0.1.7 uses: appleboy/scp-action@v0.1.7
with: with:
@ -49,8 +57,6 @@ jobs:
password: ${{ secrets.SERVER_ROOT_PASSWORD }} password: ${{ secrets.SERVER_ROOT_PASSWORD }}
script: | script: |
cd /root/Server cd /root/Server
pkill -f HttpServer || true
cp /root/Server/HttpServer /root/Server/HttpServer.bak
source /etc/profile source /etc/profile
nohup /root/Server/HttpServer > /dev/null 2>&1 & nohup /root/Server/HttpServer > /dev/null 2>&1 &
exit 0 exit 0