🌐 AI搜索 & 代理 主页
Skip to content
Merged
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
14 changes: 9 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ jobs:
fetch-depth: 0 # Fetch the full history
ref: ${{ github.ref }} # Check out the current branch or tag

- name: Fetch tags only
run: git fetch --tags --no-recurse-submodules
- name: Fetch version tags only (vx.y.z)
run: |
TAGS=$(git ls-remote --tags origin 'v*[0-9].[0-9].[0-9]' | sed 's/.*refs\/tags\///' | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$')
for tag in $TAGS; do
git fetch origin "refs/tags/$tag:refs/tags/$tag" --no-recurse-submodules
done

- name: Set up Python
uses: actions/setup-python@v4
Expand All @@ -33,12 +37,12 @@ jobs:
- name: Build documentation
run: uv run sphinx-multiversion docs/source docs/build/html --keep-going --no-color

- name: Get the latest tag
- name: Get the latest stable tag
run: |
# Fetch all tags
git fetch --tags
# Get the latest tag
latest_tag=$(git tag --sort=-creatordate | head -n 1)
# Get the latest stable tag
latest_tag=$(git tag --sort=-creatordate | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | head -n 1)
echo "LATEST_RELEASE=$latest_tag" >> $GITHUB_ENV

- name: Generate index.html for judge0.github.io/judge0-python.
Expand Down