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

Commit 3071991

Browse files
committed
250330 Fix workflows
1 parent 5685161 commit 3071991

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

.github/workflows/first-deployment.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
args: "-tt"
2525

2626
setup-python:
27+
needs: [ clean-up-folder ]
2728
runs-on: ubuntu-latest
2829
timeout-minutes: 2
2930
steps:
@@ -36,15 +37,14 @@ jobs:
3637
command: |
3738
export DEBIAN_FRONTEND=noninteractive
3839
sudo apt-get install -y python3-pip python3-venv
39-
pip --version
40-
source ${{env.REPO_NAME}}/source/bin/activate
40+
echo "pip installation completed"
41+
exit 0
4142
host: ${{ secrets.VPS_IP }}
4243
user: ${{ secrets.VPS_USER }}
4344
key: ${{ secrets.SSH_PRIVATE_KEY }}
44-
args: "-tt"
45-
45+
4646
deploy-via-sftp:
47-
needs: [ clean-up-folder, setup-python ]
47+
needs: [ clean-up-folder ]
4848
runs-on: ubuntu-latest
4949
steps:
5050
- name: Checkout
@@ -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=15'
64+
sftpArgs: '-o ConnectTimeout=30'
6565

6666
install-requirements:
6767
needs: [ deploy-via-sftp ]
@@ -79,7 +79,6 @@ jobs:
7979
host: ${{ secrets.VPS_IP }}
8080
user: ${{ secrets.VPS_USER }}
8181
key: ${{ secrets.SSH_PRIVATE_KEY }}
82-
args: "-tt"
8382

8483
add-secret-variables:
8584
needs: [deploy-via-sftp]
@@ -105,8 +104,8 @@ jobs:
105104
echo "FEEDBACK_WH=${{ secrets.FEEDBACK_WH }}" >> .env
106105
echo "LOG_WH=${{ secrets.LOG_WH }}" >> .env
107106
echo $?
108-
host: ${{ env.VPS_IP }}
109-
user: ${{ env.VPS_USER }}
107+
host: ${{ secrets.VPS_IP }}
108+
user: ${{ secrets.VPS_USER }}
110109
key: ${{ secrets.SSH_PRIVATE_KEY }}
111110

112111
create-systemctl-service:
@@ -134,8 +133,8 @@ jobs:
134133
sudo systemctl enable ${{ env.REPO_NAME }}.service
135134
sudo systemctl daemon-reload
136135
sudo systemctl start ${{ env.REPO_NAME }}.service
137-
host: ${{ env.VPS_IP }}
138-
user: ${{ env.VPS_USER }}
136+
host: ${{ secrets.VPS_IP }}
137+
user: ${{ secrets.VPS_USER }}
139138
key: ${{ secrets.SSH_PRIVATE_KEY }}
140139

141140
create-systemctl-restart:
@@ -157,6 +156,6 @@ jobs:
157156
sudo systemctl enable ${{ env.REPO_NAME }}-watcher.service
158157
sudo systemctl daemon-reload
159158
sudo systemctl start ${{ env.REPO_NAME }}-watcher.service
160-
host: ${{ env.VPS_IP }}
161-
user: ${{ env.VPS_USER }}
159+
host: ${{ secrets.VPS_IP }}
160+
user: ${{ secrets.VPS_USER }}
162161
key: ${{ secrets.SSH_PRIVATE_KEY }}

.github/workflows/update-bot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
port: 22
1919
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
2020
local_path: ./*
21-
remote_path: ./venv/${{ env.REPO_NAME }}/
21+
remote_path: ./${{ env.REPO_NAME }}/
2222
sftpargs: '-o ConnectTimeout=5'
2323

2424
restart-bot:

0 commit comments

Comments
 (0)