Skip to content

Commit ff5f3c4

Browse files
committed
build(ci): Change Deploy configuration using scp and SSH to Hostinger
1 parent 26df4e6 commit ff5f3c4

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Get yarn cache # https://github.com/actions/cache/blob/master/examples.md#node---yarn
1414
id: yarn-cache
1515
run: echo "::set-output name=dir::$(yarn cache dir)"
16-
- uses: actions/cache@v1
16+
- uses: actions/cache@v4
1717
with:
1818
path: ${{ steps.yarn-cache.outputs.dir }}
1919
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
@@ -42,13 +42,13 @@ jobs:
4242
path: dist # Optional, downloads to current working directory under folder {artifact_name} if not specified
4343
- name: Debug Files
4444
run: ls
45-
- name: Upload to FTP
46-
uses: isthatcentered/dist-to-ftp@master
45+
- name: copy file via ssh password
46+
uses: appleboy/[email protected]
4747
with:
48-
user: ${{ secrets.FTP_USER }} # Ftp user Ex:
49-
password: ${{ secrets.FTP_PASS }} # Ftp password Ex:
50-
host: ${{ secrets.FTP_HOST }} # Ftp host Ex:
51-
port: ${{ secrets.FTP_PORT }} # (optional) FTP port, defaults to 21
52-
path: dist # Folder to deploy Ex: apps/frontend/dist or dist
53-
into: / # Where to place the files in your ftp
54-
cleanupExisting: true # (Optional), Remove already existing files inside FTP destination folder (`into` parameter)
48+
host: ${{ secrets.SSH_HOST }}
49+
username: ${{ secrets.SSH_USERNAME }}
50+
key: ${{ secrets.SSH_PRIVATE_KEY }}
51+
port: ${{ secrets.PORT }}
52+
source: "dist/*"
53+
target: "/home/u825938081/domains/devdojo.it/public_html/"
54+
rm: true

0 commit comments

Comments
 (0)