|
131 | 131 | required: false |
132 | 132 | default: '60' |
133 | 133 | previous_version: |
134 | | - description: 'Previous version to increment from [auto-detect from latest git tag]' |
| 134 | + description: 'Previous version to increment from (format: book-vX.Y.Z) [auto-detect from latest git tag]' |
135 | 135 | required: false |
136 | 136 | default: '' |
137 | 137 | testing_mode: |
@@ -352,18 +352,18 @@ jobs: |
352 | 352 | LATEST_VERSION="${{ github.event.inputs.previous_version }}" |
353 | 353 | echo "π Using provided previous version: $LATEST_VERSION" |
354 | 354 | else |
355 | | - # Get latest git tag version, default to v0.0.0 if no tags exist |
356 | | - LATEST_VERSION=$(git tag -l "v*" | sort -V | tail -n1) |
| 355 | + # Get latest git tag version, default to book-v0.0.0 if no tags exist |
| 356 | + LATEST_VERSION=$(git tag -l "book-v*" | sort -V | tail -n1) |
357 | 357 | if [ -z "$LATEST_VERSION" ]; then |
358 | | - LATEST_VERSION="v0.0.0" |
| 358 | + LATEST_VERSION="book-v0.0.0" |
359 | 359 | echo "π No git tags found, using default: $LATEST_VERSION" |
360 | 360 | else |
361 | 361 | echo "π Auto-detected latest git tag: $LATEST_VERSION" |
362 | 362 | fi |
363 | 363 | fi |
364 | 364 |
|
365 | | - # Remove 'v' prefix for calculation |
366 | | - VERSION_NUM=${LATEST_VERSION#v} |
| 365 | + # Remove 'book-v' prefix for calculation |
| 366 | + VERSION_NUM=${LATEST_VERSION#book-v} |
367 | 367 |
|
368 | 368 | # Split version into components |
369 | 369 | IFS='.' read -r MAJOR MINOR PATCH <<< "$VERSION_NUM" |
@@ -394,7 +394,7 @@ jobs: |
394 | 394 | ;; |
395 | 395 | esac |
396 | 396 |
|
397 | | - NEW_VERSION="v$NEW_MAJOR.$NEW_MINOR.$NEW_PATCH" |
| 397 | + NEW_VERSION="book-v$NEW_MAJOR.$NEW_MINOR.$NEW_PATCH" |
398 | 398 | echo "π― New version: $NEW_VERSION (${{ github.event.inputs.release_type }} release)" |
399 | 399 | echo "π Description: ${{ github.event.inputs.description }}" |
400 | 400 |
|
@@ -1035,6 +1035,12 @@ jobs: |
1035 | 1035 | echo "π§Ή Removing stale root-level files..." |
1036 | 1036 | rm -rf contents/ assets/ site_libs/ tools/ |
1037 | 1037 | rm -f _redirects netlify.toml search.json sitemap.xml site.webmanifest 404.html |
| 1038 | + |
| 1039 | + # Remove development artifacts and symlinks that break GitHub Pages |
| 1040 | + echo "π§Ή Removing development artifacts..." |
| 1041 | + rm -rf __pycache__/ .vscode/ .tito/ benchmark_results/ mlsysbook.egg-info/ |
| 1042 | + rm -f .luarc.json |
| 1043 | + rm -rf .claude .github # Remove symlinks and dev-only directories |
1038 | 1044 | echo "β
Stale files removed" |
1039 | 1045 |
|
1040 | 1046 | # Create book directory and copy new content |
|
0 commit comments