Skip to content

Commit 6103874

Browse files
Mike set default version for redirect and better history (openml#1422)
1 parent 1c7bff1 commit 6103874

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/docs.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0
2628
- name: Setup Python
2729
uses: actions/setup-python@v5
2830
with:
@@ -43,7 +45,6 @@ jobs:
4345
# mkdocs gh-deploy --force
4446
git config user.name doc-bot
4547
git config user.email [email protected]
46-
git fetch --tags
4748
current_version=$(git tag | sort --version-sort | tail -n 1)
4849
# This block will rename previous retitled versions
4950
retitled_versions=$(mike list -j | jq ".[] | select(.title != .version) | .version" | tr -d '"')
@@ -52,10 +53,11 @@ jobs:
5253
done
5354
5455
echo "Deploying docs for ${current_version}"
56+
mike set-default latest
5557
mike deploy \
5658
--push \
5759
--title "${current_version} (latest)" \
5860
--update-aliases \
5961
"${current_version}" \
6062
"latest"\
61-
-b $PAGES_BRANCH
63+
-b $PAGES_BRANCH origin/$PAGES_BRANCH

0 commit comments

Comments
 (0)