Skip to content

Commit 2a899d9

Browse files
committed
Automatically update the docs symlink for new releases - Take 4
Forgot about the trailing slash.
1 parent aef1f21 commit 2a899d9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/deploy_docs.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ fi
9090
set -euo pipefail
9191

9292
DEST_SLUG=biopython/docs
93-
DEST_DIR=$(python -c "import Bio; v=Bio.__version__; print('dev' if 'dev' in v else v)")
93+
VER=$(python -c "import Bio; v=Bio.__version__; print('dev' if 'dev' in v else v)")
9494
SOURCE_DIR=${BUILD_DIR:-$PWD}/Doc/_build/html
9595
WORKING_DIR=/tmp/deploy_biopython_docs
9696
COMMIT_HASH=$(git rev-parse HEAD) # For later when we commit the docs repository
@@ -101,7 +101,7 @@ if [ -z "$DEST_DIR" ]; then
101101
false
102102
fi
103103

104-
DEST_DIR=$DEST_DIR/
104+
DEST_DIR=$VER/
105105
echo "Aiming to deploy $SOURCE_DIR to $DEST_SLUG branch gh-pages as $DEST_DIR"
106106

107107
# We have to create the SSH key with spaces and new lines, so
@@ -145,7 +145,7 @@ echo "Copying files"
145145
cp -R $SOURCE_DIR/* $DEST_DIR/
146146
echo "Staging files in git"
147147
git add $DEST_DIR/
148-
if [[ "dev" != "$DEST_DIR" ]]; then
148+
if [[ "dev" != "$VER" ]]; then
149149
echo "Updating version"
150150
rm -rf latest
151151
ln -s "$DEST_DIR" latest

0 commit comments

Comments
 (0)