Skip to content

Commit

Permalink
Travis SFTP uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
steamport committed Jul 26, 2018
1 parent c9ab138 commit 39b547b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ script:
- msbuild $EXTRA Kerbalism.sln /t:Build /p:Configuration=Release
after_success:
- /bin/cp -rf $TRAVIS_BUILD_DIR/src/obj/Release/Kerbalism.dll $TRAVIS_BUILD_DIR/GameData/Kerbalism/Kerbalism.dll
# TODO: Artifact uploading
- 7za a "$TRAVIS_BUILD_DIR/Kerbalism-$KSPVER-BUILD$TRAVIS_BUILD_NUMBER.zip" "$TRAVIS_BUILD_DIR/GameData"
- 7za a "$TRAVIS_BUILD_DIR/Kerbalism-$KSPVER-BUILD$TRAVIS_BUILD_NUMBER.zip" "$TRAVIS_BUILD_DIR/LICENSE"
- 7za a "$TRAVIS_BUILD_DIR/Kerbalism-$KSPVER-BUILD$TRAVIS_BUILD_NUMBER.zip" "$TRAVIS_BUILD_DIR/CHANGELOG.md"
- echo "${SFTP_KEY}" | base64 --decode >/tmp/sftp_key
- curl --ftp-create-dirs
-T "$TRAVIS_BUILD_DIR/Kerbalism-$KSPVER-BUILD$TRAVIS_BUILD_NUMBER.zip"
--key /tmp/sftp_key
"sftp://${SFTP_USER}@{SFTP_TARGET}/var/www/builds/Kerbalism-$KSPVER-BUILD$TRAVIS_BUILD_NUMBER.zip"
notifications:
email: false

0 comments on commit 39b547b

Please sign in to comment.