Skip to content

Commit 2ee4130

Browse files
Update main.yml
1 parent 0474c58 commit 2ee4130

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
- name: Deploy to Remote Server
2222
env:
2323
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
24-
SERVER_PASSWORD: ${{ secrets.SERVER_PASSWORD }}
24+
SERVER_SSH_KEY: ${{ secrets.SERVER_SSH_KEY }}
2525
run: |
26-
sshpass -p "$SERVER_PASSWORD" ssh -o StrictHostKeyChecking=no ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }} << 'EOF'
26+
sshpass -p "$SERVER_SSH_KEY" ssh -o StrictHostKeyChecking=no ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }} << 'EOF'
2727
# Clone or update the repository
2828
if [ ! -d "GraphRAG" ]; then
2929
git clone https://github.com/fatemenajafi135/GraphRAG.git
@@ -41,5 +41,5 @@ jobs:
4141
4242
- name: Verify Deployment
4343
env:
44-
SERVER_PASSWORD: ${{ secrets.SERVER_PASSWORD }}
44+
SERVER_PASSWORD: ${{ secrets.SERVER_SSH_KEY }}
4545
run: sshpass -p "$SERVER_PASSWORD" ssh -o StrictHostKeyChecking=no ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }} "docker ps"

0 commit comments

Comments
 (0)