Skip to content

Commit 0d72a6c

Browse files
Fix release workflow
1 parent d4659b8 commit 0d72a6c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,13 @@ jobs:
180180
run: |
181181
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
182182
.\mvnw package -Pnative -DskipTests
183+
shell: cmd
184+
185+
- name: Version
186+
id: version
187+
run: |
183188
$version=(& .\mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)
184189
"current_version=$version" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append
185-
shell: cmd
186190
187191
- name: Generate release changelog
188192
uses: mikepenz/release-changelog-builder-action@v5
@@ -193,14 +197,14 @@ jobs:
193197
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
194198

195199
- name: Rename file
196-
run: Rename-Item -Path ${{ github.workspace }}/target/kafkagen-${{ steps.build_native_windows.outputs.current_version }}-runner.exe -NewName kafkagen-${{ steps.build_native_windows.outputs.current_version }}-windows-amd64.exe
200+
run: Rename-Item -Path ${{ github.workspace }}/target/kafkagen-${{ steps.version.outputs.current_version }}-runner.exe -NewName kafkagen-${{ steps.version.outputs.current_version }}-windows-amd64.exe
197201

198202
- name: Update release
199203
uses: ncipollo/[email protected]
200204
with:
201205
token: ${{ secrets.GITHUB_TOKEN }}
202206
body: ${{ steps.build_changelog.outputs.changelog }}
203-
artifacts: ${{ github.workspace }}/target/kafkagen-${{ steps.build_native_windows.outputs.current_version }}-windows-amd64.exe
207+
artifacts: ${{ github.workspace }}/target/kafkagen-${{ steps.version.outputs.current_version }}-windows-amd64.exe
204208
draft: truedocker i
205209
prerelease: true
206210
allowUpdates: true

0 commit comments

Comments
 (0)