Skip to content

Commit

Permalink
fix(deploy): manually do the lftp command
Browse files Browse the repository at this point in the history
  • Loading branch information
Longor1996 committed Nov 30, 2023
1 parent 16a6774 commit ac565ea
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/webhost.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@ jobs:
BUILD_DIR: .
BUILD_ONLY: true
OUT_DIR: public
- name: "Deploy"
uses: SamKirkland/[email protected]
with:
protocol: ftps
port: 22
dry-run: true
local-dir: ./public/
server-dir: ./public_html/
server: ${{ secrets.ftp_hostname }}
username: ${{ secrets.ftp_username }}
password: ${{ secrets.ftp_password }}
# - name: "Deploy"
# uses: SamKirkland/[email protected]
# with:
# protocol: ftps
# port: 22
# dry-run: true
# local-dir: ./public/
# server-dir: ./public_html/
# server: ${{ secrets.ftp_hostname }}
# username: ${{ secrets.ftp_username }}
# password: ${{ secrets.ftp_password }}
- name: "Deploy 2"
run: lftp ${{ secrets.ftp_hostname }} -p 22 -u ${{ secrets.ftp_username }},${{ secrets.ftp_password }} -e "set ftp:ssl-force true; set ssl:verify-certificate false; mirror --delete --no-empty-dirs --reverse --continue --dereference -x ^\.git/$ public public_html; quit"

0 comments on commit ac565ea

Please sign in to comment.