Skip to content

Commit be5add0

Browse files
committed
test-deploy 41
1 parent 9df9e64 commit be5add0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/test-deployment.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ jobs:
3939
- name: Prepare folders on production server
4040
uses: appleboy/ssh-action@v1.2.0
4141
with:
42-
host: ${{ vars.SERVER_NAME }}
43-
username: root
42+
host: ${{ secrets.SERVER_NAME }}
43+
username: ${{ secrets.USERNAME }}
4444
key: ${{ secrets.SERVER_SSH_KEY }}
45-
port: 22
45+
port: ${{ secrets.SERVER_SSH_PORT }}
4646
script_path: ./scripts/copy2site.sh
4747
- name: Copy build to production server
4848
uses: appleboy/scp-action@v0.1.7
4949
with:
50-
host: ${{ vars.SERVER_NAME }}
51-
username: root
50+
host: ${{ secrets.SERVER_NAME }}
51+
username: ${{ secrets.USERNAME }}
5252
key: ${{ secrets.SERVER_SSH_KEY }}
53-
port: 22
53+
port: ${{ secrets.SERVER_SSH_PORT }}
5454
source: webface/*
5555
target: /var/www/

0 commit comments

Comments
 (0)