-
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from Turbo87/ci-publish
CI: Publish releases to "ember-mocha-builds" repo
- Loading branch information
Showing
4 changed files
with
34 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env bash | ||
|
||
BUILDS_REPO="https://dgeb:${GH_TOKEN}@github.com/emberjs/ember-mocha-builds.git" | ||
|
||
# Send output to /dev/null to prevent GH_TOKEN leak on error | ||
git clone ${BUILDS_REPO} &> /dev/null | ||
rm -rf ember-mocha-builds/* | ||
|
||
npm run build | ||
|
||
# Ensure that no directories within dist will be copied when script is run. | ||
INCLUDED_FILES=`find dist -maxdepth 1 -type f` | ||
echo -e "INCLUDED_FILES: ${INCLUDED_FILES}\n" | ||
cp -r ${INCLUDED_FILES} ember-mocha-builds/ | ||
|
||
cd ember-mocha-builds | ||
|
||
git config user.email "tomster@emberjs.com" | ||
git config user.name "Tomster" | ||
|
||
git add --all | ||
git commit --message="Release ${TRAVIS_TAG}" | ||
git tag "${TRAVIS_TAG}" | ||
|
||
# Send output to /dev/null to prevent GH_TOKEN leak on error | ||
git push --quiet --force origin master --tags &> /dev/null | ||
|
||
echo -e "Done\n" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.