Skip to content

Commit

Permalink
Use a bin instead of target/bin directory
Browse files Browse the repository at this point in the history
  • Loading branch information
tiram88 committed Apr 14, 2023
1 parent 962971f commit 01adff1
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ jobs:
run: |
cargo build --bin kaspad --release
cargo build --bin simpa --release
mkdir target/bin || true
cp target/release/kaspad target/bin/
cp target/release/simpa target/bin/
archive="target/bin/rusty-kaspa-${{ github.event.release.tag_name }}-linux.zip"
mkdir bin || true
cp target/release/kaspad bin/
cp target/release/simpa bin/
archive="bin/rusty-kaspa-${{ github.event.release.tag_name }}-linux.zip"
asset_name="rusty-kaspa-${{ github.event.release.tag_name }}-linux.zip"
zip -r "${archive}" ./target/bin/*
zip -r "${archive}" ./bin/*
echo "archive=${archive}" >> $GITHUB_ENV
echo "asset_name=${asset_name}" >> $GITHUB_ENV
Expand All @@ -58,12 +58,12 @@ jobs:
run: |
cargo build --bin kaspad --release
cargo build --bin simpa --release
mkdir target/bin || true
cp target/release/kaspad.exe target/bin/
cp target/release/simpa.exe target/bin/
archive="target/bin/rusty-kaspa-${{ github.event.release.tag_name }}-win64.zip"
mkdir bin || true
cp target/release/kaspad.exe bin/
cp target/release/simpa.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 target/bin/* \"${archive}\""
powershell "Compress-Archive bin/* \"${archive}\""
echo "archive=${archive}" >> $GITHUB_ENV
echo "asset_name=${asset_name}" >> $GITHUB_ENV
Expand All @@ -72,12 +72,12 @@ jobs:
run: |
cargo build --bin kaspad --release
cargo build --bin simpa --release
mkdir target/bin || true
cp target/release/kaspad target/bin/
cp target/release/simpa target/bin/
archive="target/bin/rusty-kaspa-${{ github.event.release.tag_name }}-osx.zip"
mkdir bin || true
cp target/release/kaspad bin/
cp target/release/simpa 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}" ./target/bin/*
zip -r "${archive}" ./bin/*
echo "archive=${archive}" >> $GITHUB_ENV
echo "asset_name=${asset_name}" >> $GITHUB_ENV
Expand Down

0 comments on commit 01adff1

Please sign in to comment.