Skip to content
This repository was archived by the owner on May 7, 2021. It is now read-only.

Commit 6d9dc6e

Browse files
committed
Set up deploy
1 parent 84f7a0c commit 6d9dc6e

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.travis.yml

+17
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,23 @@ node_js:
55
script:
66
- npm run build && npm run lint
77

8+
after_success:
9+
- |
10+
if [ "$TRAVIS_BRANCH" == "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then
11+
openssl aes-256-cbc -K $encrypted_1e5f78a5e17c_key -iv $encrypted_1e5f78a5e17c_iv -in deploy_key.enc -out /home/travis/.ssh/id_ed25519 -d;
12+
chmod 600 ~/.ssh/id_ed25519;
13+
echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config;
14+
git config --global user.email "[email protected]";
15+
git config --global user.name "gedorinku";
16+
git clone [email protected]:ProgrammingLab/kurume-nct.com.git;
17+
cd kurume-nct.com;
18+
rm -rf ./js/ ./css/ ./img/;
19+
cp -aR ../dist/* .;
20+
git add --all;
21+
git commit -m "built by Travis CI JOB #$TRAVIS_JOB_NUMBER";
22+
git push origin master;
23+
fi
24+
825
notifications:
926
email:
1027
on_success: never

deploy_key.enc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
0��4+՚����nԡN���X���@=�CG`���%�V�b��B�� |�G�̎eǽ����~Y�2��HL��F�w^vsË.̾\+��=`�diݖ��K�躼g��3)�?��H.�
2+
$�,�Oc�N��%=�k�[”��X#y��]��I3T"ԬolT�M���Z����/[ޔGg���H�����<�-� @��"7������C�aд \�4q��I�."��l� ���Q6��C���6������oNY_�]�,�A�#��!)�y7��0�(�G�F�YYsnd��aF�q%��:�[.T���p%�=:�e��f��u6��r Q/Tf'�!.j�ݿ_FX�A~"�Dh!��?��t�V��2`S����6#��Z�����4"� ]����6��y���O���sN�`��ʅ��פ`��b���m����l

0 commit comments

Comments
 (0)