소스 검색

Travis-CI: automatically detect filename to deploy

Kirill Vainer 10 년 전
부모
커밋
67d982a64c
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      .travis.yml

+ 5 - 1
.travis.yml

@@ -26,11 +26,15 @@ script:
   - ./gradlew check
   - ./gradlew createZipDistribution
 
+before_deploy:
+  - export RELEASE_DIST=$(ls build/distributions/*.zip)
+
 deploy:
   provider: releases
   api_key:
     secure: PuEsJd6juXBH29ByITW3ntSAyrwWs0IeFvXJ5Y2YlhojhSMtTwkoWeB6YmDJWP4fhzbajk4TQ1HlOX2IxJXSW/8ShOEIUlGXz9fHiST0dkSM+iRAUgC5enCLW5ITPTiem7eY9ZhS9miIam7ngce9jHNMh75PTzZrEJtezoALT9w=
-  file: build/distributions/jME3.1.0_snapshot-github_2015-08-02.zip
+  file_glob: true
+  file: "${RELEASE_DIST}"
   skip_cleanup: true
   on:
     repo: jMonkeyEngine/jmonkeyengine