diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9cf6c2e..0743667 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,9 @@ on: name: Make Release +env: + binary_path: target/x86_64-unknown-linux-musl/release/multip + jobs: build_and_test: name: Rust project @@ -26,7 +29,7 @@ jobs: args: --release --target x86_64-unknown-linux-musl - name: Optimize binary size - run: strip target/release/multip + run: strip ${{ env.binary_path }} - name: Create Gitub Release id: create_release @@ -50,6 +53,6 @@ jobs: # include a `upload_url`. See this blog post for more info: # https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./target/release/multip + asset_path: ${{ env.binary_path }} asset_name: multip-amd64 asset_content_type: application/octet-stream