Skip to content

latest updates in Career #28

latest updates in Career

latest updates in Career #28

Workflow file for this run

name: πŸš€ FTPS Deploy
on: [push, workflow_dispatch]
#on: [push]
jobs:
ftps-deploy:
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v3
- name: πŸ“¦ Get LFTP
run: sudo apt install lftp
- name: πŸ› οΈ Configure LFTP
run: |
mkdir ~/.lftp
echo "set ssl:ca-file ~/.lftp/certs.crt;set ssl:check-hostname no;" >> ~/.lftp/rc
echo "${{ secrets.FTP_CERTS_BASE64 }}" | base64 --decode > ~/.lftp/certs.crt
- name: πŸ”‘ Load Secrets
run: echo "machine ${{ secrets.FTP_HOSTNAME }} login ${{ secrets.FTP_USERNAME }} password ${{ secrets.FTP_PASSWORD }}" > ~/.netrc
- name: πŸ“ Upload Folder
run: lftp -e "mirror --parallel=100 -R ./ ${{ secrets.FTP_TARGETDIR }}" ${{ secrets.FTP_HOSTNAME }}