Skip to content

Commit

Permalink
Workflow for docs website
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Chmielnik committed Feb 19, 2024
1 parent 395e98f commit d7da9e0
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/publish_site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,6 @@ jobs:
name: site-artifacts
path: _site


- name: Deploy Website to live via SFTP
uses: wlixcc/[email protected]
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/[email protected]
with:
ssh-private-key: ${{ secrets.SFTP_SSH_PRIVATE_KEY }}

- name: Install SSH key
uses: webfactory/[email protected]
Expand All @@ -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
Expand Down

0 comments on commit d7da9e0

Please sign in to comment.