Skip to content

Commit bcb0476

Browse files
committed
👷 update deploy to sftp step
1 parent b3e7ac1 commit bcb0476

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

.github/workflows/deploy-dev.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ jobs:
2020
target_url: https://jelleglebbeek.com/
2121
environment: development
2222
- name: Deploy to SFTP server
23-
uses: SamKirkland/web-deploy@v1
23+
uses: appleboy/[email protected]
2424
with:
25-
target-server: ${{ secrets.TARGET_SERVER }}
26-
remote-user: ${{ secrets.TARGET_USER }}
27-
private-ssh-key: ${{ secrets.TARGET_PASS }}
28-
destination-path: ${{ secrets.TARGET_PATH }}
25+
host: ${{ secrets.TARGET_SERVER }}
26+
username: ${{ secrets.TARGET_USER }}
27+
password: ${{ secrets.TARGET_PASS }}
28+
port: ${{ secrets.TARGET_PORT }}
29+
source: "**/*"
30+
target: ${{ secrets.TARGET_PATH }}
2931
- name: Update deployment status (success)
3032
if: success()
3133
uses: chrnorm/deployment-status@releases/v1

.github/workflows/deploy-prod.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ jobs:
2020
target_url: https://jelleglebbeek.com
2121
environment: production
2222
- name: Deploy to SFTP server
23-
uses: SamKirkland/web-deploy@v1
23+
uses: appleboy/[email protected]
2424
with:
25-
target-server: ${{ secrets.TARGET_SERVER }}
26-
remote-user: ${{ secrets.TARGET_USER }}
27-
private-ssh-key: ${{ secrets.TARGET_PASS }}
28-
destination-path: ${{ secrets.TARGET_PATH }}
25+
host: ${{ secrets.TARGET_SERVER }}
26+
username: ${{ secrets.TARGET_USER }}
27+
password: ${{ secrets.TARGET_PASS }}
28+
port: ${{ secrets.TARGET_PORT }}
29+
source: "**/*"
30+
target: ${{ secrets.TARGET_PATH }}
2931
- name: Update deployment status (success)
3032
if: success()
3133
uses: chrnorm/deployment-status@releases/v1

0 commit comments

Comments
 (0)