diff --git a/.github/workflows/publish_site.yml b/.github/workflows/publish_site.yml index 57bd5f16056..ad4526c6cc7 100644 --- a/.github/workflows/publish_site.yml +++ b/.github/workflows/publish_site.yml @@ -50,21 +50,6 @@ jobs: name: site-artifacts path: _site - - - name: Deploy Website to live via SFTP - uses: wlixcc/SFTP-Deploy-Action@v1.2.4 - with: - username: ${{ secrets.SFTP_USERNAME }} - server: ${{ secrets.SFTP_SERVER }} - local_path: '_site/*' - remote_path: '/var/www/${{ env.WEBSITE_URL }}/html/' - sftp_only: true - ssh_private_key: ${{ secrets.SFTP_SSH_PRIVATE_KEY }} - sftpArgs: -C - - name: Install SSH key - uses: webfactory/ssh-agent@v0.9.0 - with: - ssh-private-key: ${{ secrets.SFTP_SSH_PRIVATE_KEY }} - name: Install SSH key uses: webfactory/ssh-agent@v0.9.0 @@ -75,11 +60,6 @@ jobs: run: | sudo apt install lftp -y lftp --version - # mkdir -p ~/.ssh - # echo "$SFTP_SSH_PRIVATE_KEY" > ~/.ssh/sftp_key - # chmod 600 ~/.ssh/sftp_key - # echo "Starting upload ..." - # mkdir test lftp -u ${{ secrets.SFTP_USERNAME }}, -e "debug;set sftp:connect-program 'ssh -a -x -o StrictHostKeyChecking=no'; mirror --reverse --parallel=5 --verbose _site/ /var/www/${{ env.WEBSITE_URL }}/html/; quit" sftp://${{ secrets.SFTP_SERVER }} # post_deploy: # needs: deploy