From ef046cc0ba5687eef5fa5484dc2a40fbe5af6f16 Mon Sep 17 00:00:00 2001 From: Denis Rouzaud Date: Sat, 6 Jul 2024 23:37:56 +0200 Subject: [PATCH] fix path --- .github/workflows/build-docs.yml | 4 +--- scripts/publish-docs.sh | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 6cb40b4ef90f..b6ca3e030674 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -84,21 +84,18 @@ jobs: uses: actions/download-artifact@v4 with: name: master - path: html - name: Get artifact for stable if: ${{ github.event_name != 'pull_request' }} uses: actions/download-artifact@v4 with: name: stable - path: html - name: Get artifact for ltr if: ${{ github.event_name != 'pull_request' }} uses: actions/download-artifact@v4 with: name: ltr - path: html - name: Push to git env: @@ -106,6 +103,7 @@ jobs: VERSIONS: ${{ github.event_name == 'pull_request' && '("master")' || needs.build-docs.outputs.QGIS_VERSIONS_LIST }} GH_TOKEN: ${{ secrets.GH_TOKEN }} run: | + echo $(ls -l) if [[ ${PUBLISH} != "false" ]]; then ./scripts/publish-docs.sh ${VERSIONS} fi diff --git a/scripts/publish-docs.sh b/scripts/publish-docs.sh index 01134101ffcc..8aa203ad7c19 100755 --- a/scripts/publish-docs.sh +++ b/scripts/publish-docs.sh @@ -51,13 +51,13 @@ else if [[ ${BUILD_TESTING} -ne false ]]; then echo "create folder for PR with master only" mkdir "PR${BUILD_TESTING}" - cp -R ../html/master/* PR${BUILD_TESTING}/ + cp -R ../master/* PR${BUILD_TESTING}/ else for VERSION in "${VERSIONS[@]}"; do echo "get ${VERSION}" rm -rf ${VERSION} mkdir "${VERSION}" - cp -R ../html/${VERSION}/* ${VERSION}/ + cp -R ../${VERSION}/* ${VERSION}/ done fi fi