diff --git a/ci/actions/deploy.sh b/ci/actions/deploy.sh index b5ba81ab..9c5e9dd3 100755 --- a/ci/actions/deploy.sh +++ b/ci/actions/deploy.sh @@ -13,10 +13,11 @@ else BUILD="live" fi -if [[ "${GITHUB_REPOSITORY}" -eq "nanocurrency/nano-node" ]]; then +if [[ "${GITHUB_REPOSITORY:-}" == "nanocurrency/nano-node" ]]; then S3_BUCKET="repo.nano.org" else S3_BUCKET="private-build-repo" +fi if [[ "$OS" == 'Linux' ]]; then sha256sum $GITHUB_WORKSPACE/build/nano-node-*-Linux.tar.bz2 >$GITHUB_WORKSPACE/nano-node-$TAG-Linux.tar.bz2.sha256 diff --git a/ci/actions/windows/deploy.ps1 b/ci/actions/windows/deploy.ps1 index 7a22d5be..3270ed16 100644 --- a/ci/actions/windows/deploy.ps1 +++ b/ci/actions/windows/deploy.ps1 @@ -10,7 +10,7 @@ else { $network_cfg = "live" } -if ( ${env:GITHUB_REPOSITORY} -eq "nanocurrency/nano-node" ) { +if ( ${env:GITHUB_REPOSITORY} == "nanocurrency/nano-node" ) { $s3_bucket="repo.nano.org" } else {