From 96ac22ce8a34f0a72cf049b29010b4c0d0a20282 Mon Sep 17 00:00:00 2001 From: pchmielnik <135322581+pchmielnik@users.noreply.github.com> Date: Fri, 8 Mar 2024 15:05:52 +0100 Subject: [PATCH] Change location to /docs (#10) Co-authored-by: Piotr Chmielnik --- .github/workflows/publish_site.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish_site.yml b/.github/workflows/publish_site.yml index 1aef20c853..f652c564c4 100644 --- a/.github/workflows/publish_site.yml +++ b/.github/workflows/publish_site.yml @@ -1,4 +1,4 @@ -name: Publish Website eoed-docs.eliatra.com +name: Publish Website on: workflow_dispatch: @@ -8,7 +8,9 @@ on: pull_request: env: - WEBSITE_URL: 'eoed-docs.eliatra.com' + WEBSITE_URL: 'eliatra.com' + UPLOAD_DIR: 'eod' + jobs: setup: @@ -74,7 +76,8 @@ jobs: exit 1 fi echo "Start SFTP upload version: $WEBSITE_VERSION" - lftp -u ${{ secrets.SFTP_USERNAME }}, -e "set sftp:connect-program 'ssh -a -x -o StrictHostKeyChecking=no'; mkdir -p /var/www/${{ env.WEBSITE_URL }}/html/$WEBSITE_VERSION; mirror --reverse --parallel=20 --verbose _site/ /var/www/${{ env.WEBSITE_URL }}/html/$WEBSITE_VERSION/; quit" sftp://${{ secrets.SFTP_SERVER }} + lftp -u ${{ secrets.SFTP_USERNAME }}, -e "set sftp:connect-program 'ssh -a -x -o StrictHostKeyChecking=no'; mkdir -p /var/www/${{ env.UPLOAD_DIR }}/html/$WEBSITE_VERSION; mirror --reverse --parallel=20 --verbose _site/ /var/www/${{ env.UPLOAD_DIR }}/html/$WEBSITE_VERSION/; quit" sftp://${{ secrets.SFTP_SERVER }} + post_deploy: needs: deploy