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

Commit

Permalink
(maint) remove release from pre_deploy step.
Browse files Browse the repository at this point in the history
  • Loading branch information
nanliu committed Oct 17, 2016
1 parent b2aa10a commit 3eb46a3
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions scripts/pre_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ if [ -z "$TRAVIS_TAG" ]; then
cp -rp "${build_path}/"* "${git_path}"
_info "copying plugin binaries to ${latest_path}"
cp -rp "${build_path}/"* "${latest_path}"

find "${s3_path}" -type directory -name 'plugins' -exec sh -c 'mv $1/* $1/..' _ {} \; -delete
else
set -u
tag_path="${s3_path}/${TRAVIS_TAG}"
Expand All @@ -59,22 +61,9 @@ else
cp -rp "${build_path}/"* "${tag_path}"
_info "copying plugin binaries to ${latest_path}"
cp -rp "${build_path}/"* "${latest_path}"
fi

release_path="${SNAP_PATH:-"${__proj_dir}/release"}"
mkdir -p "${release_path}"

_info "moving plugin binaries to ${release_path}"

for file in "${build_path}"/**/*/snap-plugin-* ; do
filename="${file##*/}"
parent="${file%/*}"
arch="${parent##*/}"
parent="${parent%/*}"
os="${parent##*/}"
cp "${file}" "${release_path}/${filename}_${os}_${arch}"
done
find "${s3_path}" -type directory -name 'plugins' -exec sh -c 'mv $1/* $1/..' _ {} \; -delete
fi

_debug "$(find "${build_path}")"
_debug "$(find "${s3_path}")"
_debug "$(find "${release_path}")"

0 comments on commit 3eb46a3

Please sign in to comment.