Skip to content

Commit cf6bafd

Browse files
committed
Automatically update the docs symlink for new releases - Take 5
1 parent 2a899d9 commit cf6bafd

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/deploy_docs.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ set -euo pipefail
9191

9292
DEST_SLUG=biopython/docs
9393
VER=$(python -c "import Bio; v=Bio.__version__; print('dev' if 'dev' in v else v)")
94+
DEST_DIR=$VER/
9495
SOURCE_DIR=${BUILD_DIR:-$PWD}/Doc/_build/html
9596
WORKING_DIR=/tmp/deploy_biopython_docs
9697
COMMIT_HASH=$(git rev-parse HEAD) # For later when we commit the docs repository
@@ -100,8 +101,6 @@ if [ -z "$DEST_DIR" ]; then
100101
python -c "import Bio; print(Bio.__version__)"
101102
false
102103
fi
103-
104-
DEST_DIR=$VER/
105104
echo "Aiming to deploy $SOURCE_DIR to $DEST_SLUG branch gh-pages as $DEST_DIR"
106105

107106
# We have to create the SSH key with spaces and new lines, so

0 commit comments

Comments
 (0)