Skip to content

Commit

Permalink
Python: Publish beta version docs as non-latest (#858)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron authored Nov 13, 2024
1 parent 08b448b commit 01648f7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/python-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,13 @@ jobs:
# Then remove `py-` from the tag
VERSION=$(git describe --tags --match="py-*" --abbrev=0 | cut -c 4-)
# Only push docs if no letters in git tag after the first character
# Only publish docs as latest version if no letters in git tag
# after the first character
# (usually the git tag will have v as the first character)
if echo $VERSION | cut -c 1- | grep -q "[A-Za-z]"; then
# Note the `cut` index is 1-ordered
if echo $VERSION | cut -c 2- | grep -q "[A-Za-z]"; then
uv run mike deploy $VERSION latest --update-aliases --push --deploy-prefix python/
else
# For beta versions publish but don't set as latest
uv run mike deploy $VERSION --update-aliases --push --deploy-prefix python/
fi
6 changes: 3 additions & 3 deletions python/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion python/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ resolver = "2"

[workspace.package]
authors = ["Kyle Barron <[email protected]>"]
version = "0.3.0"
version = "0.4.0-beta.1"
edition = "2021"
homepage = "https://geoarrow.org/geoarrow-rs/"
repository = "https://github.com/geoarrow/geoarrow-rs"
Expand Down

0 comments on commit 01648f7

Please sign in to comment.