Skip to content

Commit

Permalink
Don't publish docs for beta versions (#86)
Browse files Browse the repository at this point in the history
* Don't publish docs for beta versions

* Bump

* publish but don't set as latest

* wording
  • Loading branch information
kylebarron authored Nov 12, 2024
1 parent 5ac5b4f commit f34ba9b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,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 push 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
else
# For beta versions publish but don't set as latest
uv run mike deploy $VERSION --update-aliases --push
fi
2 changes: 1 addition & 1 deletion 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 obstore/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "obstore"
version = "0.3.0-beta.4"
version = "0.3.0-beta.5"
authors = { workspace = true }
edition = { workspace = true }
description = "A Python interface to the Rust object_store crate, providing a uniform API for interacting with object storage services and local files."
Expand Down

0 comments on commit f34ba9b

Please sign in to comment.