Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX - Upload documentation only when merging to main #209

Merged
merged 4 commits into from
Dec 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 13 additions & 17 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,31 +67,27 @@ jobs:
cd ..;


# Deploy docs
# Add stable doc
- run:
name: add stable doc
command: |
set -e
mkdir -p ~/.ssh
echo -e "Host *\nStrictHostKeyChecking no" > ~/.ssh/config
chmod og= ~/.ssh/config
cd doc;
make add-stable-doc;


# upload to gh-pages
- run:
name: deploy
command: |
if [[ ${CIRCLE_BRANCH} == "main" ]]; then
set -e
mkdir -p ~/.ssh
echo -e "Host *\nStrictHostKeyChecking no" > ~/.ssh/config
chmod og= ~/.ssh/config
cd doc;
pip install ghp-import;
make add-stable-doc
make install
fi

# Add stable documentation
- run:
name: stable_doc
command: |
set -e
mkdir -p ~/.ssh
echo -e "Host *\nStrictHostKeyChecking no" > ~/.ssh/config
chmod og= ~/.ssh/config
cd doc;
make add-stable-doc

# Save the outputs
- store_artifacts:
Expand Down