Skip to content

Commit

Permalink
All deploys should update docs, display version
Browse files Browse the repository at this point in the history
  • Loading branch information
drewbo committed Aug 18, 2020
1 parent 37eeeb5 commit 2b4f4a5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
32 changes: 14 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,24 +62,20 @@ jobs:
- run:
name: Deploy documentation
command: |
if [ "${CIRCLE_BRANCH}" == "${PRODUCTION_BRANCH}" ]; then
pip install -r requirements-dev.txt
cd docs
make html
cd _build/html
git init
git config user.name "Devseed-CI"
git config user.email "dev@developmentseed.org"
touch .nojekyll # Add this so GitHub doesn't try and build site
git add .
git commit -m "CI deploy [skip ci]"
git remote add origin git@github.com:developmentseed/label-maker.git
git fetch
git push origin --force --quiet HEAD:gh-pages
rm -rf .git
else
echo "Not the branch you're looking for, skipping documentation deploy"
fi
pip install -r requirements-dev.txt
cd docs
make html
cd _build/html
git init
git config user.name "Devseed-CI"
git config user.email "dev@developmentseed.org"
touch .nojekyll # Add this so GitHub doesn't try and build site
git add .
git commit -m "CI deploy [skip ci]"
git remote add origin git@github.com:developmentseed/label-maker.git
git fetch
git push origin --force --quiet HEAD:gh-pages
rm -rf .git
workflows:
version: 2
build_and_deploy:
Expand Down
2 changes: 2 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Label Maker Documentation

Label Maker generates training data for ML algorithms focused on overhead imagery (e.g., from satellites or drones). It downloads OpenStreetMap QA Tile information and overhead imagery tiles and saves them as an Numpy `.npz <https://docs.scipy.org/doc/numpy/reference/generated/numpy.savez.html>`_ file for easy use in ML pipelines. For more details, see the `inaugural blog post <https://developmentseed.org/blog/2018/01/11/label-maker/>`_.

*version*: |version|

Requirements
============
* `Python 3.6 <https://www.python.org/>`_
Expand Down

0 comments on commit 2b4f4a5

Please sign in to comment.