]> git.immae.eu Git - github/fretlink/terraform-provider-mailgun.git/blobdiff - .travis.yml
ci(deploy): push compiled provider as an artifact to Github releases
[github/fretlink/terraform-provider-mailgun.git] / .travis.yml
index 9757a8950b630dc77fa2e8abe864277b511cefc7..d8f41491540ea4c03ac29e9e667320d5251c15b3 100644 (file)
@@ -24,14 +24,20 @@ script:
 - make website-githubpages
 
 deploy:
-  provider: pages
-  skip_cleanup: true
-  github_token: "$GITHUB_TOKEN"
-  target_branch: gh-pages
-  keep_history: true
-  local_dir: terraform-provider-website
-  on:
-    branch: master
+  - provider: pages
+    skip_cleanup: true
+    github_token: "$GITHUB_TOKEN"
+    target_branch: gh-pages
+    keep_history: true
+    local_dir: terraform-provider-website
+    on:
+      branch: master
+  - provider: releases
+    api_key: "$GITHUB_TOKEN"
+    file: "terraform-provider-mailgun-$TRAVIS_TAG-linux_amd64"
+    skip_cleanup: true
+    on:
+      tags: true
 
 matrix:
   fast_finish: true