Skip to content

Commit

Permalink
Fetch tags after clone to fix build public docs script
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Mar 2, 2024
1 parent e2b456c commit cf3830b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
- name: Clone Source Repository
uses: actions/checkout@v3

- name: Fetch git tags
run: git fetch --tags origin

- name: Clone Generated Repository
uses: actions/checkout@v3
with:
Expand Down
3 changes: 3 additions & 0 deletions scripts/build_public_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ LATEST_BRANCH="2.x"
BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)
TAG_NAME=$(git tag --points-at HEAD)

echo "branch=${BRANCH_NAME}"
echo "tag=${TAG_NAME}"

if [ "${BRANCH_NAME}" = "${NEXT_BRANCH}" ]; then
echo "Building next docs (${NEXT_BRANCH})"
env DOCS_VERSION=next sphinx-build -a docs/ docs/public/en/next/
Expand Down

0 comments on commit cf3830b

Please sign in to comment.