Skip to content

Commit

Permalink
Revert "try again"
Browse files Browse the repository at this point in the history
This reverts commit 4a4c661.
  • Loading branch information
ofek committed Dec 11, 2023
1 parent 4a4c661 commit 8bac7b2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/build-hatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,23 +156,19 @@ 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 "New version: $version"
echo "$version"
- name: Archive binary
run: |-
Expand Down

0 comments on commit 8bac7b2

Please sign in to comment.