Skip to content

Commit

Permalink
Update docsite publish steps (#1235)
Browse files Browse the repository at this point in the history
* limit doc pubilcation

---------

Signed-off-by: Chris Trevino <chtrevin@microsoft.com>
  • Loading branch information
darthtrevino authored Jul 30, 2024
1 parent 232e123 commit a209094
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/docs-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,22 @@ jobs:
run: ./docs/generate_docs.sh
env:
DOCS_VERSION: ${{ env.release_tag }}

- name: Prune old doc versions
run: |
mkdir -p ./tmp
mv ./dowhy_docs/$VERSION ./tmp/$VERSION
rm -rf ./dowhy-docs/*
mv ./tmp/$VERSION ./dowhy-docs/$VERSION
echo "Assets ready, listing contents..."
find ./dowhy-docs
env:
VERSION: ${{ env.release_tag }}

- name: Commit and push to gh-pages branch
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dowhy-docs
exclude_assets: '.github'
publish_dir: ./dowhy-docs/
keep_files: true
3 changes: 2 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ jobs:
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dowhy-docs
publish_dir: ./dowhy-docs/main
destination_dir: ./main

0 comments on commit a209094

Please sign in to comment.