File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,36 +31,34 @@ jobs:
3131 git config --local user.name "GitHub Action"
3232 git config --local user.email "action@github.com"
3333
34- # Step 4: Bump the version (patch, minor, or major)
34+ # Bump the version (patch, minor, or major)
3535 - name : Bump Version
36+ id : bump_version
3637 run : |
3738 bump2version patch
39+ outputs :
40+ new_version : ${{ steps.bump_version.outputs.new_version }}
3841
39- # Step 5: Build the project
40- - name : Build Project
41- run : |
42- poetry build
4342
44- # Step 6: Push changes (committed by bump2version)
43+ # Push changes (committed by bump2version)
4544 - name : Push Version Bump Changes
4645 run : |
4746 git config user.name "github-actions[bot]"
4847 git config user.email "github-actions[bot]@users.noreply.github.com"
4948 git push origin main
5049
51- # Step 7: Create a GitHub Release
50+ # Create a GitHub Release
5251 - name : Create Release
5352 id : create_release
5453 uses : actions/create-release@v1
5554 env :
5655 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5756 with :
58- tag_name : ' v${{ steps.bump_version.outputs.new_version }}' # New version from bump2version
57+ tag_name : ' v${{ steps.bump_version.outputs.new_version }}'
5958 release_name : ' Release v${{ steps.bump_version.outputs.new_version }}'
6059 draft : false
6160 prerelease : false
6261
63- # # Step 8: Upload build artifacts to the release (optional)
6462# - name: Upload Build Artifacts
6563# uses: actions/upload-artifact@v4
6664# with:
You can’t perform that action at this time.
0 commit comments