Skip to content

Commit

Permalink
Only build versioned docs when publishing (#3250)
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesbvll authored Apr 12, 2024
1 parent ca5e04b commit ebd186d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
cd datasets
python -m poetry install
- name: Build docs
run: ./dev/build-docs.sh
run: ./dev/build-docs.sh ${{ github.ref == 'refs/heads/main' && github.repository == 'adap/flower' && !github.event.pull_request.head.repo.fork }}
- name: Deploy docs
if: ${{ github.ref == 'refs/heads/main' && github.repository == 'adap/flower' && !github.event.pull_request.head.repo.fork }}
env:
Expand Down
7 changes: 6 additions & 1 deletion dev/build-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,9 @@ cd $ROOT

cd $ROOT
cd doc
./build-versioned-docs.sh

if [ "$1" = true ]; then
./build-versioned-docs.sh
else
make html
fi

0 comments on commit ebd186d

Please sign in to comment.