Skip to content
This repository was archived by the owner on Dec 24, 2025. It is now read-only.

Commit 0f49115

Browse files
committed
250330 Fix workflows
1 parent 3071991 commit 0f49115

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/first-deployment.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
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

.github/workflows/update-bot.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
name: Update Bot
2+
23
on:
34
push:
45
branches: [ production ]
56
workflow_dispatch:
7+
68
env:
79
REPO_NAME: ${{ github.event.repository.name }}
10+
811
jobs:
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]

0 commit comments

Comments
 (0)