diff --git a/.github/workflows/release-rust.yaml b/.github/workflows/release-rust.yaml index 5bad74b..6236c2f 100644 --- a/.github/workflows/release-rust.yaml +++ b/.github/workflows/release-rust.yaml @@ -28,7 +28,7 @@ jobs: - name: Build run: cargo build --release --verbose --target=${{ matrix.target }} --manifest-path rozy/Cargo.toml - name: Ensure version is correct - run: rozy/target/${{ matrix.target }}/release/ozy --version | grep "$(echo $GITHUB_REF | cut -d / -f 3)" + run: rozy/target/${{ matrix.target }}/release/ozy --version | grep "$(echo $GITHUB_REF_NAME | cut -c2-)" - name: Rename run: mv rozy/target/${{ matrix.target }}/release/ozy rozy/target/${{ matrix.target }}/release/${{ matrix.asset }} - name: Upload binaries to release