File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 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 :
4345 # mkdocs gh-deploy --force
4446 git config user.name doc-bot
4547 git config user.email doc-bot@openml.com
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
You can’t perform that action at this time.
0 commit comments