diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index d0b2ceb8c..2f270c33f 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -63,14 +63,17 @@ jobs: if [ "${{ github.event.release.prerelease }}" = "true" ]; then echo "This is a pre-release" cargo --verbose build --bin kaspad --bin rothschild --bin kaspa-wallet --profile=heap --target x86_64-unknown-linux-musl + export BUILD_DIR="heap/release" else echo "This is a full release" cargo --verbose build --bin kaspad --bin rothschild --bin kaspa-wallet --release --target x86_64-unknown-linux-musl - fi + export BUILD_DIR="release" + fi + mkdir bin || true - cp target/x86_64-unknown-linux-musl/release/kaspad bin/ - cp target/x86_64-unknown-linux-musl/release/rothschild bin/ - cp target/x86_64-unknown-linux-musl/release/kaspa-wallet bin/ + cp target/x86_64-unknown-linux-musl/$BUILD_DIR/kaspad bin/ + cp target/x86_64-unknown-linux-musl/$BUILD_DIR/rothschild bin/ + cp target/x86_64-unknown-linux-musl/$BUILD_DIR/kaspa-wallet bin/ archive="bin/rusty-kaspa-${{ github.event.release.tag_name }}-linux-musl-amd64.zip" asset_name="rusty-kaspa-${{ github.event.release.tag_name }}-linux-musl-amd64.zip" zip -r "${archive}" ./bin/* @@ -84,15 +87,17 @@ jobs: if [ "${{ github.event.release.prerelease }}" = "true" ]; then echo "This is a pre-release" cargo build --bin kaspad --bin simpa --bin rothschild --bin kaspa-wallet --profile=heap + export BUILD_DIR="heap/release" else echo "This is a full release" cargo build --bin kaspad --bin simpa --bin rothschild --bin kaspa-wallet --release + export BUILD_DIR="release" fi mkdir bin || true - cp target/release/kaspad.exe bin/ - cp target/release/simpa.exe bin/ - cp target/release/rothschild.exe bin/ - cp target/release/kaspa-wallet.exe bin/ + cp target/$BUILD_DIR/kaspad.exe bin/ + cp target/$BUILD_DIR/simpa.exe bin/ + cp target/$BUILD_DIR/rothschild.exe bin/ + cp target/$BUILD_DIR/kaspa-wallet.exe bin/ archive="bin/rusty-kaspa-${{ github.event.release.tag_name }}-win64.zip" asset_name="rusty-kaspa-${{ github.event.release.tag_name }}-win64.zip" powershell "Compress-Archive bin/* \"${archive}\"" @@ -105,15 +110,17 @@ jobs: if [ "${{ github.event.release.prerelease }}" = "true" ]; then echo "This is a pre-release" cargo build --bin kaspad --bin simpa --bin rothschild --bin kaspa-wallet --profile=heap + export BUILD_DIR="heap/release" else echo "This is a full release" cargo build --bin kaspad --bin simpa --bin rothschild --bin kaspa-wallet --release + export BUILD_DIR="release" fi mkdir bin || true - cp target/release/kaspad bin/ - cp target/release/simpa bin/ - cp target/release/rothschild bin/ - cp target/release/kaspa-wallet bin/ + cp target/$BUILD_DIR/kaspad bin/ + cp target/$BUILD_DIR/simpa bin/ + cp target/$BUILD_DIR/rothschild bin/ + cp target/$BUILD_DIR/kaspa-wallet bin/ archive="bin/rusty-kaspa-${{ github.event.release.tag_name }}-osx.zip" asset_name="rusty-kaspa-${{ github.event.release.tag_name }}-osx.zip" zip -r "${archive}" ./bin/*