This repository was archived by the owner on Dec 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 6161 local_path : ./*
6262 # destination of the code on the server
6363 remote_path : ./${{ env.REPO_NAME }}
64- sftpArgs : ' -o ConnectTimeout=30 '
64+ sftpArgs : ' -o ConnectTimeout=5 '
6565
6666 install-requirements :
6767 needs : [ deploy-via-sftp ]
@@ -122,14 +122,14 @@ jobs:
122122 After=multi-user.target
123123 [Service]
124124 Type=simple
125- ExecStart=$(pwd)/venv/bin/python3 $(pwd)/venv/ ${{ env.REPO_NAME }}/launcher.py -normal
125+ ExecStart=$(pwd)/venv/bin/python3 $(pwd)/${{ env.REPO_NAME }}/launcher.py -normal
126126 User=${{ env.VPS_USER }}
127127 Restart=on-failure
128128 RestartSec=30
129- WorkingDirectory=$(pwd)/venv/ ${{ env.REPO_NAME }}/
129+ WorkingDirectory=$(pwd)/${{ env.REPO_NAME }}/
130130 [Install]
131131 WantedBy=multi-user.target" > /etc/systemd/system/${{ env.REPO_NAME }}.service'
132- chmod +x $(pwd)/venv/ ${{ env.REPO_NAME }}/launcher.py
132+ chmod +x $(pwd)/${{ env.REPO_NAME }}/launcher.py
133133 sudo systemctl enable ${{ env.REPO_NAME }}.service
134134 sudo systemctl daemon-reload
135135 sudo systemctl start ${{ env.REPO_NAME }}.service
Original file line number Diff line number Diff line change 11name : Update Bot
2+
23on :
34 push :
45 branches : [ production ]
56 workflow_dispatch :
7+
68env :
79 REPO_NAME : ${{ github.event.repository.name }}
10+
811jobs :
912 deploy-via-sftp :
1013 runs-on : ubuntu-latest
@@ -15,11 +18,11 @@ jobs:
1518 with :
1619 username : ${{ secrets.VPS_USER }}
1720 server : ${{ secrets.VPS_IP }}
18- port : 22
21+ port : ${{secrets.PORT}}
1922 ssh_private_key : ${{ secrets.SSH_PRIVATE_KEY }}
2023 local_path : ./*
2124 remote_path : ./${{ env.REPO_NAME }}/
22- sftpargs : ' -o ConnectTimeout=5'
25+ sftpArgs : ' -o ConnectTimeout=5'
2326
2427 restart-bot :
2528 needs : [deploy-via-sftp]
You can’t perform that action at this time.
0 commit comments