Skip to content

Commit bfa5fe5

Browse files
committed
fix: versioning
1 parent 39c0c65 commit bfa5fe5

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,19 @@ jobs:
4949
with:
5050
args: ${{ inputs.bump-type }}
5151
github-token: ${{ secrets.GITHUB_TOKEN }}
52+
53+
build:
54+
name: Build Package
55+
needs: [bump-version]
56+
if: |
57+
always() &&
58+
(needs.bump-version.result == 'success' || needs.bump-version.result == 'skipped')
59+
runs-on: ubuntu-latest
60+
steps:
61+
- uses: actions/checkout@v4
62+
with:
63+
ref: ${{ github.event_name == 'workflow_dispatch' && format('v{0}', needs.bump-version.outputs.version) || github.ref }}
64+
5265
- name: Install uv
5366
uses: astral-sh/setup-uv@v4
5467
with:
@@ -101,7 +114,8 @@ jobs:
101114

102115
create-release:
103116
name: Create GitHub Release
104-
needs: publish-pypi
117+
needs: [bump-version, publish-pypi]
118+
if: always() && needs.publish-pypi.result == 'success'
105119
runs-on: ubuntu-latest
106120
steps:
107121
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)