diff --git a/.github/workflows/publish_site.yml b/.github/workflows/publish_site.yml index 4a8431a17bc..fa2afa0da61 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: @@ -9,6 +9,7 @@ on: env: WEBSITE_URL: 'test.eliatra.com' + jobs: setup: @@ -74,7 +75,7 @@ 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/opendistro/html/$WEBSITE_VERSION; mirror --reverse --parallel=20 --verbose _site/ /var/www/${{ env.WEBSITE_URL }}/html/$WEBSITE_VERSION/; quit" sftp://52.30.226.239 + lftp -u ${{ secrets.SFTP_USERNAME }}, -e "set sftp:connect-program 'ssh -a -x -o StrictHostKeyChecking=no'; mkdir -p /var/www/opendistro/html/$WEBSITE_VERSION; mirror --reverse --parallel=20 --verbose _site/ /var/www/opendistro/html/$WEBSITE_VERSION/; quit" sftp://52.30.226.239 post_deploy: needs: deploy