Skip to content

Commit

Permalink
fix(custom-build) Add the build target to the url (#11263)
Browse files Browse the repository at this point in the history
The current custom release logic will upload to a url that changes every
time based on commit.
This PR introduces the option to have the same url for subsequent builds
of the same branch: `/${os}/${BRANCH}/${target}/neard`
  • Loading branch information
VanBarbascu committed May 10, 2024
1 parent ef64846 commit 8c25258
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/neard_custom_release.yml
Expand Up @@ -54,7 +54,7 @@ jobs:
if [ -z "$BRANCH" ]; then
BRANCH=$(git branch -r --contains=${{ github.ref_name }} | head -n1 | cut -c3- | cut -d / -f 2)
fi
aws s3 cp --acl public-read latest s3://build.nearprotocol.com/nearcore/$(uname)/${BRANCH}/latest
aws s3 cp --acl public-read latest s3://build.nearprotocol.com/nearcore/$(uname)/${BRANCH}/${{ github.event.inputs.release }}/latest
docker-release:
name: "Build and publish nearcore Docker image"
Expand Down
1 change: 1 addition & 0 deletions scripts/binary_release.sh
Expand Up @@ -53,6 +53,7 @@ function upload_binary {

else
folder="${release%-release}"
aws s3 cp --acl public-read target/release/$1 s3://build.nearprotocol.com/nearcore/${os}/${BRANCH}/${folder}/$1
aws s3 cp --acl public-read target/release/$1 s3://build.nearprotocol.com/nearcore/${os}/${BRANCH}/${COMMIT}/${folder}/$1
aws s3 cp --acl public-read target/release/$1 s3://build.nearprotocol.com/nearcore/${os_and_arch}/${BRANCH}/${COMMIT}/${folder}/$1
fi
Expand Down

0 comments on commit 8c25258

Please sign in to comment.