Push built code automatically

This commit is contained in:
Aya Morisawa 2017-02-27 23:32:14 +09:00
parent cb7bf0e310
commit e9132b2c1b
3 changed files with 19 additions and 0 deletions

6
.gitignore-release Normal file
View file

@ -0,0 +1,6 @@
/*
!/built
!/tools
!/elasticsearch
!/package.json

View file

@ -16,6 +16,19 @@ before_script:
- cp ./.ci-files/test.yml ./.config
- npm run build
after_success:
- openssl aes-256-cbc -K $encrypted_ceda82069128_key -iv $encrypted_ceda82069128_iv -in travis_rsa.enc -out travis_rsa -d
- cp .travis_rsa ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- git checkout -b release
- cp -f .gitignore-release .gitignore
- git add --all
- git config --global user.email "AyaMorisawa4869@gmail.com"
- git config --global user.name "Aya Morisawa"
- git commit -m "Release build for $TRAVIS_COMMIT"
- if [ $TRAVIS_BRANCH = "master" ]; then git push -f git@github.com:syuilo/misskey release; fi
env:
- CXX=g++-4.8

BIN
travis_rsa.enc Normal file

Binary file not shown.