From 750ecfeb8cd6a2b1d204f6aabb13934f95612b7d Mon Sep 17 00:00:00 2001 From: Piotr Chmielnik Date: Fri, 23 Feb 2024 20:53:31 +0100 Subject: [PATCH] Fix broken links --- .github/workflows/publish_site.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_site.yml b/.github/workflows/publish_site.yml index 525a95e3001..be9aa901b21 100644 --- a/.github/workflows/publish_site.yml +++ b/.github/workflows/publish_site.yml @@ -37,7 +37,7 @@ jobs: run: | sed -i '/^url:/c\url: "https://${{ env.WEBSITE_URL }}"' _config.yml WEBSITE_VERSION=$(cat _config.yml|grep "^opensearch_major_minor_version:"|cut -d ':' -f2| tr -d '[:blank:]') - echo "::set-output name=website_version::$WEBSITE_VERSION" + echo "website_version=$WEBSITE_VERSION" >> $GITHUB_OUTPUT sed -i '/^baseurl:/c\baseurl: "/docs/'"$WEBSITE_VERSION"'"' _config.yml cat _config.yml|grep -e "^url:" -e "^baseurl:" - run: bundle exec jekyll build --future @@ -68,7 +68,7 @@ jobs: sudo apt install lftp -y lftp --version echo "Start SFTP upload" - lftp -u ${{ secrets.SFTP_USERNAME }}, -e "set sftp:connect-program 'ssh -a -x -o StrictHostKeyChecking=no'; mkdir -p /var/www/${{ env.WEBSITE_URL }}/html/${{ needs.job1.outputs.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.WEBSITE_URL }}/html/${{ needs.build.outputs.website_version }}; mirror --reverse --parallel=20 --verbose _site/ /var/www/${{ env.WEBSITE_URL }}/html/$WEBSITE_VERSION/; quit" sftp://${{ secrets.SFTP_SERVER }} post_deploy: needs: deploy