]> git.immae.eu Git - github/fretlink/terraform-provider-mailgun.git/commitdiff
Merge pull request #18 from paulrbr-fl/add-binary-release master v0.1.0
authorpaulrbr-fl <43074087+paulrbr-fl@users.noreply.github.com>
Tue, 6 Aug 2019 13:36:50 +0000 (15:36 +0200)
committerGitHub <noreply@github.com>
Tue, 6 Aug 2019 13:36:50 +0000 (15:36 +0200)
ci: compile provider during testing phase

.travis.yml

index f6ca131cb3e5ecc71026aaf9d838bec8a63cb5ac..d8f41491540ea4c03ac29e9e667320d5251c15b3 100644 (file)
@@ -15,6 +15,8 @@ install:
 - bash scripts/gogetcookie.sh
 
 script:
+- make build
+- mv "$GOPATH/bin/terraform-provider-mailgun" "terraform-provider-mailgun-$TRAVIS_TAG-linux_amd64"
 - make test
 - make vet
 - make website-test
@@ -22,15 +24,21 @@ 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
   allow_failures: