diff --git a/.travis.yml b/.travis.yml index 4e6a512..3f267c9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,19 @@ before_install: addons: sonarcloud: organization: ylinor-github + ssh_known_hosts: onaple.fr script: - ./gradlew sonarqube - - ./gradlew build \ No newline at end of file +before_deploy: +- openssl aes-256-cbc -K $encrypted_182d1a38c631_key -iv $encrypted_182d1a38c631_iv + -in deploy_rsa.enc -out /tmp/deploy_rsa -d +- eval "$(ssh-agent -s)" +- chmod 600 /tmp/deploy_rsa +- ssh-add /tmp/deploy_rsa +deploy: +- provider: script + skip_cleanup: true + script: rsync -r --delete-after --quiet $TRAVIS_BUILD_DIR/build/libs/* aventurier@onaple.fr:~/sponge-server-1.12/mods/ + on: + tags: true + all_branches: false diff --git a/deploy_rsa.enc b/deploy_rsa.enc new file mode 100644 index 0000000..df2ff48 Binary files /dev/null and b/deploy_rsa.enc differ