Skip to content

Commit

Permalink
bundle docs in make docs CI step to preserve symlinks
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmad Rezaii <[email protected]>
  • Loading branch information
arezaii committed Mar 3, 2025
1 parent a15f28f commit a3f6c35
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit a3f6c35

Please sign in to comment.