Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't publish docs from beta git tag #70

Open
kylebarron opened this issue Nov 1, 2024 · 1 comment · Fixed by #86
Open

Don't publish docs from beta git tag #70

kylebarron opened this issue Nov 1, 2024 · 1 comment · Fixed by #86

Comments

@kylebarron
Copy link
Member

Not sure why this isn't working:

run: |
# Get most recent git tag
# https://stackoverflow.com/a/7261049
# https://stackoverflow.com/a/3867811
# We don't use {{github.ref_name}} because if triggered manually, it
# will be a branch name instead of a tag version.
# 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
# (usually the git tag will have v as the first character)
if echo $VERSION | cut -c 1- | grep -q "[A-Za-z]"; then
uv run mike deploy $VERSION latest --update-aliases --push
fi

@kylebarron
Copy link
Member Author

This still doesn't work correctly.

@kylebarron kylebarron reopened this Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant