Skip to content

Commit

Permalink
Merge pull request #4074 from freedomofpress/dont-bump-docs-versions-…
Browse files Browse the repository at this point in the history
…on-rcs

Don't bump SecureDrop version strings in docs for release candidates
  • Loading branch information
redshiftzero authored Mar 22, 2019
2 parents 6a73450 + 686987f commit 7334eba
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@
# built documents.
#
# The short X.Y version.
version = '0.13.0~rc1'
version = '0.12.1'
# The full version, including alpha/beta/rc tags.
release = '0.13.0~rc1'
release = '0.12.1'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
4 changes: 2 additions & 2 deletions docs/set_up_admin_tails.rst
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ key:
.. code:: sh
cd ~/Persistent/securedrop/
git checkout 0.13.0~rc1
git tag -v 0.13.0~rc1
git checkout 0.12.1
git tag -v 0.12.1
You should see ``Good signature from "SecureDrop Release Signing Key"`` in the
output of that last command along with the fingerprint above.
Expand Down
8 changes: 4 additions & 4 deletions update_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ sed -i "s/^\(securedrop_app_code_version: \"\).*/\1$NEW_VERSION\"/" install_file
# Update the version in molecule testinfra vars
sed -i "s@$(echo "${OLD_VERSION}" | sed 's/\./\\./g')@$NEW_VERSION@g" molecule/builder-trusty/tests/vars.yml

# Update the version that we tell people to check out in the install doc
sed -i "s@$(echo "${OLD_VERSION}" | sed 's/\./\\./g')@$NEW_VERSION@g" docs/set_up_admin_tails.rst
sed -i "s@$(echo "${OLD_VERSION}" | sed 's/\./\\./g')@$NEW_VERSION@g" docs/conf.py

# If version doesnt have an rc designator, its considered stable
# theres a few things that peg to that stable version like upgrade testing logic
# and strings inside the documentation
OLD_RELEASE=$(cat molecule/shared/stable.ver)
if [[ ! $NEW_VERSION == *~rc* ]]; then
echo "${NEW_VERSION}" > molecule/shared/stable.ver
sed -i "s@$(echo "${OLD_RELEASE}" | sed 's/\./\\./g')@$NEW_VERSION@g" docs/set_up_admin_tails.rst
sed -i "s@$(echo "${OLD_RELEASE}" | sed 's/\./\\./g')@$NEW_VERSION@g" docs/conf.py
fi

# Update the changelog
Expand Down

0 comments on commit 7334eba

Please sign in to comment.