Skip to content

Commit e013290

Browse files
author
Sychevskyi Henadii
committed
ASUP-340
1 parent 32fdd6a commit e013290

1 file changed

Lines changed: 17 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
steps:
1111
- name: Checkout code
1212
uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
1315

1416
- name: Set up Go
1517
uses: actions/setup-go@v4
@@ -31,11 +33,23 @@ jobs:
3133
pip install --upgrade pip
3234
pip install pipenv
3335
pipenv lock --clear
34-
pipenv install --deploy --system
36+
pipenv install --dev --deploy
37+
38+
- name: Fetch all branches
39+
run: |
40+
git fetch --all --prune
3541
36-
- name: Build documentation
42+
- name: Build documentation (all versions)
3743
run: |
38-
task build
44+
# Determine latest version from mkdocs.yml (last line in extra.versions)
45+
LATEST_VERSION="$(tail -n 1 mkdocs.yml | sed 's/://')"
46+
echo "Latest documentation version: ${LATEST_VERSION}"
47+
48+
# Build all versions using mkdocs_versioned (similar to build.sh)
49+
pipenv run mkdocs_versioned --default-branch="${LATEST_VERSION}"
50+
51+
# Copy issue report page into the built site root
52+
cp issue_report.php site/
3953
4054
- name: Create documentation archive
4155
run: |

0 commit comments

Comments
 (0)