-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a14cf0
commit 916dbb3
Showing
5 changed files
with
279 additions
and
309 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 |
---|---|---|
@@ -1,34 +1,2 @@ | ||
#!/usr/bin/env bash | ||
|
||
# setup git | ||
git init | ||
git config --global user.email "coilysiren@gmail.com" | ||
git config --global user.name "Kai Siren" | ||
git config --global pull.rebase true | ||
|
||
# remove travis's readonly origin, add our origin with write permissions | ||
# NOTE: GITHUB_API_TOKEN needs to be added to travis | ||
# https://blog.github.com/2013-05-16-personal-api-tokens/ | ||
# https://docs.travis-ci.com/user/environment-variables/#Defining-Variables-in-Repository-Settings | ||
git remote remove origin | ||
git remote add origin https://${GITHUB_API_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git | ||
|
||
# setup our branch | ||
git pull origin | ||
git checkout deploy | ||
git pull origin deploy | ||
git merge -X theirs main | ||
|
||
# do main work ( part 1 ) | ||
make build-wasm | ||
# and commit | ||
git add . && git commit -m "[[ BOT ]] build wasm :: ${TRAVIS_BUILD_NUMBER}" | ||
|
||
# do main work ( part 2 ) | ||
make build-js-prod | ||
# and commit | ||
git add . && git commit -m "[[ BOT ]] build js :: ${TRAVIS_BUILD_NUMBER}" | ||
|
||
# push changes | ||
git pull origin deploy | ||
git push origin deploy |
Oops, something went wrong.