Skip to content

Commit

Permalink
Add CI spoofer script
Browse files Browse the repository at this point in the history
  • Loading branch information
fbennett committed Apr 1, 2018
1 parent 83f36a8 commit 3f2bf2a
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions push.sh
@@ -0,0 +1,35 @@
#!/bin/bash

set -e

##
## Tag releases manually.
##
#TAG=$(grep '<em:version' install.rdf | sed -e 's/.*>\(.*\)<.*/\1/' | sed -e 's/\.SOURCE//')
#git tag $TAG
#git push --tags

SOURCE_REPO_URL="https://github.com/Juris-M/zotero"
CI_ZIP="ci/client"

branch="jurism-5.0"

HASH=$(git ls-remote --exit-code $SOURCE_REPO_URL $branch | cut -f 1)

git checkout $HASH

rm -fR build

node ./scripts/build.js

cd build

zip -r $HASH.zip *

cd ..

node ./deployer/index.js -u ./build/"$HASH.zip" "$CI_ZIP"/"$HASH.zip"

rm ./build/"$HASH.zip"

git checkout jurism-5.0

0 comments on commit 3f2bf2a

Please sign in to comment.