瀏覽代碼

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