Skip to content

Commit

Permalink
publish: explicit name for deb package
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-prosser committed Oct 26, 2023
1 parent 4051008 commit 7658235
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cli/publish-binaries
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,16 @@ case $BUILD_PLATFORM in
build_and_upload "x86_64-unknown-linux-musl" "re"
build_and_upload "x86_64-unknown-linux-gnu" "re"

export LOCAL_DEB_PATH="../target/debian/reinfer-cli_${CLI_VERSION}_amd64.deb"

# Build and upload deb package
cargo deb
cargo deb --output "$LOCAL_DEB_PATH"

export VERSIONED_DEB_PATH="gs://reinfer-public/cli/debian/reinfer-cli_${CLI_VERSION}_amd64.deb"
export LATEST_DEB_PATH="gs://reinfer-public/cli/debian/reinfer-cli_latest_amd64.deb"

if ! gsutil -q stat "$VERSIONED_DEB_PATH"; then
gsutil cp "../target/debian/reinfer-cli_${CLI_VERSION}_amd64.deb" "$VERSIONED_DEB_PATH"
gsutil cp "$LOCAL_DEB_PATH" "$VERSIONED_DEB_PATH"
fi

# TODO (tommmiligan) Disable until we can overwrite files from CI
Expand Down

0 comments on commit 7658235

Please sign in to comment.