Skip to content

Commit

Permalink
feat: nightly builds now available
Browse files Browse the repository at this point in the history
Nightly builds can now be accessed with branch `nighly`. This contain WIP features that might break
at any time. See the README.md for details on how to access nightly builds.
  • Loading branch information
ashblue committed Jun 9, 2019
1 parent fbf6914 commit 2cd0774
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,11 @@ install:
- npm install
script:
- commitlint-travis
- npm run build
- npm run semantic-release
deploy:
- provider: script
skip_cleanup: true
script: bash publish-nightly.sh
on:
branch: feature/nightly-builds
20 changes: 20 additions & 0 deletions publish-nightly.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env bash

setup_git() {
git config --global user.email "[email protected]"
git config --global user.name "Travis CI - Bot"
}

commit_files() {
git add dist -f
git commit -m "Update nightly files"
}

update_nightly_branch() {
git remote add origin-nightly https://${GH_TOKEN}@github.com/ashblue/fluid-behavior-tree.git
git subtree push --prefix dist origin-nightly nightly
}

setup_git
commit_files
update_nightly_branch

0 comments on commit 2cd0774

Please sign in to comment.