Skip to content

Commit 0659204

Browse files
committed
fix: remove manual version input, use release_type for auto-increment
Book version is auto-calculated from release_type (patch/minor/major) and the previous git tag. Simpler and less error-prone.
1 parent 51df491 commit 0659204

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/publish-all-live.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,18 @@ name: '🚀 Publish All (Live)'
66
on:
77
workflow_dispatch:
88
inputs:
9-
book_version:
10-
description: 'Book version (e.g., v0.6.0)'
11-
required: true
12-
default: 'v0.6.0'
13-
book_description:
14-
description: 'Book release description'
15-
required: true
16-
default: 'Content updates and improvements'
179
release_type:
18-
description: 'Release type'
10+
description: 'Book release type (auto-increments version)'
1911
type: choice
2012
options:
2113
- minor
2214
- patch
2315
- major
2416
default: 'minor'
17+
book_description:
18+
description: 'Book release description'
19+
required: true
20+
default: 'Content updates and improvements'
2521
deploy_book:
2622
description: 'Deploy Book?'
2723
type: boolean
@@ -183,7 +179,7 @@ jobs:
183179
run: |
184180
echo "## 🚀 Publish All Complete" >> $GITHUB_STEP_SUMMARY
185181
echo "" >> $GITHUB_STEP_SUMMARY
186-
echo "**Version**: ${{ inputs.book_version }}" >> $GITHUB_STEP_SUMMARY
182+
echo "**Release Type**: ${{ inputs.release_type }}" >> $GITHUB_STEP_SUMMARY
187183
echo "**Description**: ${{ inputs.book_description }}" >> $GITHUB_STEP_SUMMARY
188184
echo "" >> $GITHUB_STEP_SUMMARY
189185
echo "| Site | Status |" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)