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
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Add SSH key
|
- name: Setup SSH Key
|
||||||
uses: webfactory/ssh-agent@v0.7.0
|
run: |
|
||||||
with:
|
mkdir -p ~/.ssh
|
||||||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
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
|
- name: Deploy to SSH Server
|
||||||
uses: appleboy/scp-action@v0.1.0
|
uses: appleboy/scp-action@v0.1.0
|
||||||
|
@ -26,4 +32,4 @@ jobs:
|
||||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
source: "."
|
source: "."
|
||||||
target: ${{ secrets.PROJECT_PATH }}
|
target: ${{ secrets.PROJECT_PATH }}
|
||||||
port: 22
|
port: "22"
|
Loading…
Add table
Add a link
Reference in a new issue