diff --git a/.travis.yml b/.travis.yml index b727d220..7861f667 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,7 @@ before_deploy: - curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.15.2 - export PATH="$HOME/.yarn/bin:$PATH" - RELEASE_TAG=$TRAVIS_TAG ./scripts/release.sh +- RELEASE_TAG=$TRAVIS_TAG ./scripts/publish.sh deploy: provider: releases diff --git a/scripts/publish.sh b/scripts/publish.sh new file mode 100755 index 00000000..f0404dd3 --- /dev/null +++ b/scripts/publish.sh @@ -0,0 +1,11 @@ +#!/bin/bash +set -e +mkdir dist +cd dist +cp ../blessing-skin-server-$RELEASE_TAG.zip blessing-skin-server-$RELEASE_TAG.zip +echo "{\"spec\":1,\"latest\":\"$RELEASE_TAG\",\"url\":\"\"}" > update.json +git init +git add . +git commit -m "Publish" +git remote add origin https://blessing-skin:$AZURE_TOKEN@dev.azure.com/blessing-skin/Blessing%20Skin%20Server/_git/Blessing%20Skin%20Server +git push -f origin master