Skip to content

Commit 7c19ea1

Browse files
author
phernandez
committed
save output of new release in github action
1 parent 19a14da commit 7c19ea1

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)