Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 3eb46a3

Browse files
committed
(maint) remove release from pre_deploy step.
1 parent b2aa10a commit 3eb46a3

1 file changed

Lines changed: 4 additions & 15 deletions

File tree

scripts/pre_deploy.sh

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ if [ -z "$TRAVIS_TAG" ]; then
4848
cp -rp "${build_path}/"* "${git_path}"
4949
_info "copying plugin binaries to ${latest_path}"
5050
cp -rp "${build_path}/"* "${latest_path}"
51+
52+
find "${s3_path}" -type directory -name 'plugins' -exec sh -c 'mv $1/* $1/..' _ {} \; -delete
5153
else
5254
set -u
5355
tag_path="${s3_path}/${TRAVIS_TAG}"
@@ -59,22 +61,9 @@ else
5961
cp -rp "${build_path}/"* "${tag_path}"
6062
_info "copying plugin binaries to ${latest_path}"
6163
cp -rp "${build_path}/"* "${latest_path}"
62-
fi
63-
64-
release_path="${SNAP_PATH:-"${__proj_dir}/release"}"
65-
mkdir -p "${release_path}"
6664

67-
_info "moving plugin binaries to ${release_path}"
68-
69-
for file in "${build_path}"/**/*/snap-plugin-* ; do
70-
filename="${file##*/}"
71-
parent="${file%/*}"
72-
arch="${parent##*/}"
73-
parent="${parent%/*}"
74-
os="${parent##*/}"
75-
cp "${file}" "${release_path}/${filename}_${os}_${arch}"
76-
done
65+
find "${s3_path}" -type directory -name 'plugins' -exec sh -c 'mv $1/* $1/..' _ {} \; -delete
66+
fi
7767

7868
_debug "$(find "${build_path}")"
7969
_debug "$(find "${s3_path}")"
80-
_debug "$(find "${release_path}")"

0 commit comments

Comments
 (0)