Skip to content

Commit

Permalink
Merge pull request #40 from bdbcat/master
Browse files Browse the repository at this point in the history
Correct cloudsmith upload script template
  • Loading branch information
rgleason committed Feb 23, 2020
2 parents c2fe728 + 2e6e25c commit 3790b25
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ For OSX standalone build in weather_routing_pi directory:

License
=======
The plugin code is licensed under the terms of the GPL v3+
The plugin code is licensed under the terms of the GPL v3+

Part of the icons made by Smashicons (https://www.flaticon.com/authors/smashicons) from Flaticon (https://www.flaticon.com/) and is licensed under CC BY 3.0 (http://creativecommons.org/licenses/by/3.0)

20 changes: 13 additions & 7 deletions cmake/in-files/circleci-upload.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -70,26 +70,32 @@ else
PKG_REPO="$UNSTABLE_REPO"
fi

COMMON_NAME_SUB=@COMMON_NAME@
echo $COMMON_NAME_SUB

echo $tarball_name
echo $tarball

sudo sed -i -e "s|--pkg_repo--|$PKG_REPO|" $xml
sudo sed -i -e "s|--name--|$COMMON_NAME|" $xml
sudo sed -i -e "s|--name--|$tarball_name|" $xml
sudo sed -i -e "s|--version--|$VERSION|" $xml
sudo sed -i -e "s|--filename--|$tarball_basename|" $xml

cat $xml
ls -l build

cloudsmith push raw --republish --no-wait-for-sync \
--name @PACKAGE@-@PKG_TARGET@-@PKG_TARGET_VERSION@-metadata \
--version ${VERSION} \
--summary "@PACKAGE@ opencpn plugin metadata for automatic installation" \
$REPO $xml

cloudsmith push raw --republish --no-wait-for-sync \
--name $tarball_name \
--version ${VERSION} \
--summary "@PACKAGE@ opencpn plugin tarball for automatic installation" \
$REPO $tarball

cloudsmith push raw --republish --no-wait-for-sync \
--name @PACKAGE@-@PKG_TARGET@-@PKG_TARGET_VERSION@-metadata \
--version ${VERSION} \
--summary "@PACKAGE@ opencpn plugin metadata for automatic installation" \
$REPO $xml

cloudsmith push raw --republish --no-wait-for-sync \
--name @PACKAGE@-@PKG_TARGET@-@PKG_TARGET_VERSION@.${PKG_EXT} \
--version ${VERSION} \
Expand Down

0 comments on commit 3790b25

Please sign in to comment.