Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek committed Dec 11, 2023
1 parent 4de0f5f commit 4a4c661
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build-hatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,19 +156,23 @@ jobs:
# perform the following transformation: X.Y.Z.devN -> X.Y.Z.N
- name: Set project version
id: version
if: ${{ matrix.job.target == 'x86_64-unknown-linux-gnu' }}
run: |-
old_version="$(hatch version)"
echo "Old version: $old_version"
version="${old_version/dev/}"
if [[ "$version" != "$old_version" ]]; then
cd dist/app
old_binary="$(ls)"
echo "Old binary: $old_binary"
binary="${old_binary/$old_version/$version}"
echo "New binary: $binary"
mv "$old_binary" "$binary"
fi
echo "version=$version" >> $GITHUB_OUTPUT
echo "$version"
echo "New version: $version"
- name: Archive binary
run: |-
Expand Down

0 comments on commit 4a4c661

Please sign in to comment.