Skip to content

Commit 01648f7

Browse files
authored
Python: Publish beta version docs as non-latest (#858)
Ref developmentseed/obstore#86
1 parent 08b448b commit 01648f7

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

.github/workflows/python-docs.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,13 @@ jobs:
6161
# Then remove `py-` from the tag
6262
VERSION=$(git describe --tags --match="py-*" --abbrev=0 | cut -c 4-)
6363
64-
# Only push docs if no letters in git tag after the first character
64+
# Only publish docs as latest version if no letters in git tag
65+
# after the first character
6566
# (usually the git tag will have v as the first character)
66-
if echo $VERSION | cut -c 1- | grep -q "[A-Za-z]"; then
67+
# Note the `cut` index is 1-ordered
68+
if echo $VERSION | cut -c 2- | grep -q "[A-Za-z]"; then
6769
uv run mike deploy $VERSION latest --update-aliases --push --deploy-prefix python/
70+
else
71+
# For beta versions publish but don't set as latest
72+
uv run mike deploy $VERSION --update-aliases --push --deploy-prefix python/
6873
fi

python/Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

python/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ resolver = "2"
44

55
[workspace.package]
66
authors = ["Kyle Barron <[email protected]>"]
7-
version = "0.3.0"
7+
version = "0.4.0-beta.1"
88
edition = "2021"
99
homepage = "https://geoarrow.org/geoarrow-rs/"
1010
repository = "https://github.com/geoarrow/geoarrow-rs"

0 commit comments

Comments
 (0)