workflow bugfix
This commit is contained in:
parent
8507792f94
commit
0d1e09dc78
1 changed files with 11 additions and 5 deletions
16
.github/workflows/deploy.yml
vendored
16
.github/workflows/deploy.yml
vendored
|
@ -13,10 +13,16 @@ jobs:
|
|||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Add SSH key
|
||||
uses: webfactory/ssh-agent@v0.7.0
|
||||
with:
|
||||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
- name: Setup SSH Key
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
|
||||
- name: Debug SSH Connection
|
||||
run: |
|
||||
ssh -v -o StrictHostKeyChecking=no ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }} "echo 'SSH Connection Successful'"
|
||||
|
||||
|
||||
- name: Deploy to SSH Server
|
||||
uses: appleboy/scp-action@v0.1.0
|
||||
|
@ -26,4 +32,4 @@ jobs:
|
|||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
source: "."
|
||||
target: ${{ secrets.PROJECT_PATH }}
|
||||
port: 22
|
||||
port: "22"
|
Loading…
Add table
Add a link
Reference in a new issue