Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Commit

Permalink
Add GitHub release
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanScherer committed Mar 26, 2018
1 parent 4fc40f1 commit 2965abd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ echo "$CIRCLE_TAG"
if [ "$CIRCLE_TAG" != "" ]; then
gem install package_cloud
package_cloud push Hypriot/rpi/debian/stretch output/*/raspberrypi-kernel*.deb

curl -sSL https://github.com/tcnksm/ghr/releases/download/v0.5.4/ghr_v0.5.4_linux_amd64.zip -o ghr.zip
unzip ghr.zip
mkdir ghroutput
cp output/*/raspberrypi-kernel*.deb ghroutput/

if [[ $CIRCLE_TAG = *"rc"* ]]; then
pre=-prerelease
fi
./ghr $pre -u hypriot $CIRCLE_TAG ghroutput/

else
echo "No release tag detected. Skip deployment."
fi

0 comments on commit 2965abd

Please sign in to comment.