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+ 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