Skip to content

Commit

Permalink
Fixed bug which prevented program version number from being propagate…
Browse files Browse the repository at this point in the history
…d to the create release command
  • Loading branch information
aabmets committed Oct 19, 2024
1 parent 15e7807 commit e9084a2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@ jobs:
name: dpapi-cli-build
path: build_artifacts

- name: Get version numbers
- name: Get binary version
shell: pwsh
run: |
$version = (Invoke-Expression '.\build_artifacts\dpapi-cli.exe --version')
echo "BUILT_PROGRAM_VERSION=${$version}" >> $env:GITHUB_ENV
echo "PROGRAM_VERSION=${version}" >> $env:GITHUB_ENV
- name: Create GitHub Release
run: |
gh release create `
"v${{ env.BUILT_PROGRAM_VERSION }}" `
"v${{ env.PROGRAM_VERSION }}" `
"build_artifacts/dpapi-cli.exe" `
--title "Release v${{ env.BUILT_PROGRAM_VERSION }}" `
--notes "New release of dpapi-cli version ${{ env.BUILT_PROGRAM_VERSION }}." `
--title "Release v${{ env.PROGRAM_VERSION }}" `
--notes "New release of dpapi-cli version ${{ env.PROGRAM_VERSION }}." `
--latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e9084a2

Please sign in to comment.