@@ -72,27 +72,19 @@ jobs:
7272 uses : softprops/action-gh-release@v2
7373 with :
7474 name : " v${{ steps.version.outputs.VERSION }} (Release Candidate)"
75+ draft : true
76+ generate_release_notes : true
7577 body : |
76- ## 🧪 Test Release Published to TestPyPI
77-
78- This is a pre-release version for testing. Install and test with:
78+ ## Test Release (TestPyPI)
7979
8080 ```bash
81- # Test the CLI
82- uvx --index-url https://test.pypi.org/simple/ aegis-stack --version
83-
84- # Test project generation
85- uvx --index-url https://test.pypi.org/simple/ aegis-stack init test-project --no-interactive
86- cd test-project
87- make check
81+ uvx --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ --index-strategy unsafe-best-match aegis-stack@${{ steps.version.outputs.VERSION }} init test-project
8882 ```
8983
90- **⚠️ This is a test release from TestPyPI - not for production use!**
91-
92- If testing is successful, promote to production with:
84+ Not for production use. If testing passes, promote with:
9385 ```bash
94- git tag v${{ steps. version.outputs.VERSION }}
95- git push --tags
86+ git tag v< version>
87+ git push origin v<version>
9688 ```
9789 prerelease : true
9890 files : dist/*
@@ -128,44 +120,28 @@ jobs:
128120 id : version
129121 run : echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
130122
131- - name : Extract changelog for this version
132- id : changelog
133- run : |
134- # Extract changelog section for this version (if CHANGELOG.md exists)
135- if [ -f CHANGELOG.md ]; then
136- # Try to extract the section for this version
137- VERSION="${{ steps.version.outputs.VERSION }}"
138- CHANGELOG=$(awk "/## \[${VERSION}\]|## ${VERSION}/,/## \[|## [0-9]/" CHANGELOG.md | sed '1d;$d' || echo "See CHANGELOG.md for details")
139- echo "CHANGELOG<<EOF" >> $GITHUB_OUTPUT
140- echo "$CHANGELOG" >> $GITHUB_OUTPUT
141- echo "EOF" >> $GITHUB_OUTPUT
142- else
143- echo "CHANGELOG=See commit history for details" >> $GITHUB_OUTPUT
144- fi
145-
146123 - name : Create GitHub Release
147124 uses : softprops/action-gh-release@v2
148125 with :
149126 name : " v${{ steps.version.outputs.VERSION }}"
127+ draft : true
128+ generate_release_notes : true
150129 body : |
151- ## 🚀 Released to PyPI
130+ ## Installation
152131
153- Install with:
154132 ```bash
155- pip install --upgrade aegis-stack
133+ pip install aegis-stack==${{ steps.version.outputs.VERSION }}
156134 ```
157135
158- Or use directly with `uvx` :
136+ Or run directly:
159137 ```bash
160138 uvx aegis-stack init my-project
161139 ```
162140
163- ## 📦 Package Information
164- - **PyPI**: https://pypi.org/project/aegis-stack/${{ steps.version.outputs.VERSION }}/
165- - **Documentation**: https://lbedner.github.io/aegis-stack/
166-
167- ## 📝 Changes
141+ ## Links
168142
169- ${{ steps.changelog.outputs.CHANGELOG }}
143+ - [PyPI](https://pypi.org/project/aegis-stack/${{ steps.version.outputs.VERSION }}/)
144+ - [Documentation](https://lbedner.github.io/aegis-stack/)
145+ - [Changelog](https://github.com/lbedner/aegis-stack/blob/main/CHANGELOG.md)
170146 files : dist/*
171147 prerelease : false
0 commit comments