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

Try to fix docs ci #458

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/deploy-mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ name: Publish docs via GitHub Pages

# Only run on new tags starting with `v`
on:
push:
tags:
- 'v*'
pull_request:
#push:
# tags:
# - 'v*'
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -56,6 +57,8 @@ jobs:
# will be a branch name instead of a tag version.
VERSION=$(git describe --tags --abbrev=0)

echo "Publishing version: $VERSION"

# 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 | sed 's/^.//' | grep -q "[A-Za-z]"; then
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ nav:
- Performance: performance.md
- Changelog: CHANGELOG.md
- Alternatives: alternatives.md
- "How it works?":
- How it works?:
- how-it-works/index.md
- how-it-works/internals.md

Expand Down
Loading