Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Release merge with origin with ours strategy #2631

Merged
merged 1 commit into from
Oct 14, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions js/scripts/release.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
#!/bin/bash

# find the build destimation
DEST=${BUILD_DEST:=.build}

# change into the js directory (one down from scripts)
# change into the build directory
pushd `dirname $0`
cd ../$DEST
cd ../.build

# variables
UTCDATE=`date -u "+%Y%m%d-%H%M%S"`
Expand All @@ -22,10 +19,12 @@ git config user.name "GitLab Build Bot"

# add local files and send it up
git remote add origin https://${GITHUB_JS_PRECOMPILED}:@github.com/ethcore/js-precompiled.git
git fetch origin
git checkout -b $CI_BUILD_REF_NAME
git add .
git commit -m "$UTCDATE"
git push origin $CI_BUILD_REF_NAME --force
git commit -m "$UTCDATE [compiled]"
git merge origin/$CI_BUILD_REF_NAME -X ours --commit -m "$UTCDATE [release]"
git push origin $CI_BUILD_REF_NAME

# back to root
popd
Expand Down