Add publish script
This commit is contained in:
parent
c9f75f70d1
commit
7e70281fb2
|
|
@ -10,6 +10,7 @@ before_deploy:
|
||||||
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.15.2
|
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.15.2
|
||||||
- export PATH="$HOME/.yarn/bin:$PATH"
|
- export PATH="$HOME/.yarn/bin:$PATH"
|
||||||
- RELEASE_TAG=$TRAVIS_TAG ./scripts/release.sh
|
- RELEASE_TAG=$TRAVIS_TAG ./scripts/release.sh
|
||||||
|
- RELEASE_TAG=$TRAVIS_TAG ./scripts/publish.sh
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
|
|
|
||||||
11
scripts/publish.sh
Executable file
11
scripts/publish.sh
Executable file
|
|
@ -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
|
||||||
Loading…
Reference in New Issue
Block a user