diff --git a/.github/workflows/upload.yaml b/.github/workflows/upload.yaml index 9e58e09..e7d794d 100644 --- a/.github/workflows/upload.yaml +++ b/.github/workflows/upload.yaml @@ -15,22 +15,22 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Install lftp + run: sudo apt-get install -y lftp + - name: Upload files to web server - run: | - # Install lftp - sudo apt-get install -y lftp - # Upload web server contents - lftp -c "open -u mil,${{ secrets.MIL_UFL_SFTP_PASS }} \ - -p ${{ secrets.MIL_UFL_SFTP_PORT }} \ - sftp://mil.ufl.edu; \ + run: > + lftp -c "open -u mil,${{ secrets.MIL_UFL_SFTP_PASS }} + -p ${{ secrets.MIL_UFL_SFTP_PORT }} + sftp://mil.ufl.edu; ls" - lftp -c "open -u mil,${{ secrets.MIL_UFL_SFTP_PASS }} \ - -p ${{ secrets.MIL_UFL_SFTP_PORT }} \ - sftp://mil.ufl.edu; \ - mirror -c \ - --include='.*' \ - --exclude='^\..*$' \ - --only-newer --ignore-time \ - -R --parallel \ - . \ + lftp -c "open -u mil,${{ secrets.MIL_UFL_SFTP_PASS }} + -p ${{ secrets.MIL_UFL_SFTP_PORT }} + sftp://mil.ufl.edu; + mirror -c + --include='.*' + --exclude='^\..*$' + --only-newer --ignore-time + -R --parallel + . htdocs"