From a3f6c357041254fe12d54c9dc429e1d7f3c883fc Mon Sep 17 00:00:00 2001 From: Ahmad Rezaii Date: Mon, 3 Mar 2025 14:36:11 -0700 Subject: [PATCH] bundle docs in make docs CI step to preserve symlinks Signed-off-by: Ahmad Rezaii --- .github/workflows/CI.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 12786e332a1d..0e1350e2fc61 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -48,12 +48,12 @@ jobs: # also builds chapel-py so those docs are included run: | ./util/buildRelease/smokeTest quickstart chapel-py docs + tar -cvf docs.tar.gz -C doc/html . - name: upload docs uses: actions/upload-artifact@v4 with: name: documentation - path: doc/html - include-hidden-files: true + path: docs.tar.gz make_mason: runs-on: ubuntu-latest @@ -209,11 +209,13 @@ jobs: - name: push docs run: | + echo "extract docs" + tar -xvf docs.tar.gz echo "Publish module docs to web server" # py-modindex.html is not needed rm -f py-modindex.html # Remove all hidden files except .htaccess find . -maxdepth 1 -type f -name ".*" ! -name ".htaccess" -exec rm -f {} + - rsync -avz --cvs-exclude --delete --relative --exclude="versionButton.php" --dry-run . ${{ secrets.WEBSITE_USER }}@${{ secrets.WEBSITE_URL }}:${{ secrets.WEBSITE_PATH }} + rsync -avz --cvs-exclude --delete --relative --dry-run . ${{ secrets.WEBSITE_USER }}@${{ secrets.WEBSITE_URL }}:${{ secrets.WEBSITE_PATH }} rm ~/.ssh/id_rsa rm ~/.ssh/known_hosts