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 23
23
runs-on : ubuntu-latest
24
24
steps :
25
25
- uses : actions/checkout@v4
26
+ with :
27
+ fetch-depth : 0
26
28
- name : Setup Python
27
29
uses : actions/setup-python@v5
28
30
with :
43
45
# mkdocs gh-deploy --force
44
46
git config user.name doc-bot
45
47
git config user.email [email protected]
46
- git fetch --tags
47
48
current_version=$(git tag | sort --version-sort | tail -n 1)
48
49
# This block will rename previous retitled versions
49
50
retitled_versions=$(mike list -j | jq ".[] | select(.title != .version) | .version" | tr -d '"')
@@ -52,10 +53,11 @@ jobs:
52
53
done
53
54
54
55
echo "Deploying docs for ${current_version}"
56
+ mike set-default latest
55
57
mike deploy \
56
58
--push \
57
59
--title "${current_version} (latest)" \
58
60
--update-aliases \
59
61
"${current_version}" \
60
62
"latest"\
61
- -b $PAGES_BRANCH
63
+ -b $PAGES_BRANCH origin/$PAGES_BRANCH
You can’t perform that action at this time.
0 commit comments