Skip to content

Commit

Permalink
Updated travis.yml to compress the binaries and package in to named f…
Browse files Browse the repository at this point in the history
…iles.
  • Loading branch information
plmwong committed Apr 19, 2019
1 parent c06e972 commit a52af5d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ terraform-provider-keboola.exe
terraform-provider-keboola*.exe
terraform.tfstate

bin/
releases/

*.backup
*.log
*.sensitive
Expand Down
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@ script:
- make release

before_deploy:
- ls -Rla bin/
- echo "Deploying release binaries to GitHub"

deploy:
provider: releases
api_key:
secure: ap0E4Mb+/aybjZwkcGPJ1QeBHlqzWGM/qmuUX9fXyCZ1abx1zzv+MZOH6pAonOl80qbkTS8aKsCOkf4bwB+oAb+OBIWdRaB1gtush1Jhc9T829aAnx9LqVTHqiGseJjmgy+wD/wmDFIC0ErbJBV/4sBUZ05UdpcgTRdFPjxpxMd1jyURMmf0pggaakCNj2HOOexapB84+X2lYzp78MUgS9AHeWcfmyKD3B4gZbc72QPjDL/XB1ZeNemf+Y5DwHMzT7ba8Vs6l7VTOuQocTrl0q0tmp9pJq/baEat90ob3MhxCzokcfPc7/Vs9WrAN0zocR3T4gL8XwvuTYvVdZW8a0hCKYKQPdqqcV26XP2892T4i83DC++DYlrnVUeC4UMAevIDXKVm1rE8q2meZ6nKVEVUqXWLCdHhQTpxXOUadv3XxpnXseTf34Wr5kshuOFLEPVCKU1jO/3WC1pr5KPxrP3OZ6dVOph9S8suEd3wSc3vLZ05PrlqBsl7NmMO+oNcFEH4jnQdNj1sf/fPzLZRI8hB65xIlGUpO96Xyug5s5XHBMJ33DPDWwUe0bKQKo9nFvOAsOau/anC5LGgFIqbFWFF/Ytv3dYidHet/KEto2E6z+rzGBrmCC8fw/crJWFtPia4orhbwj7bSGMA/TmmNw2kCrds57jNrBs4nQxDOtg=
file_glob: true
file: bin/**/*
file: releases/*.zip
skip_cleanup: true
on:
tags: true
Expand Down
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,9 @@ release: test

GOARCH=amd64 GOOS=windows go build -o bin/windows_amd64/terraform-provider-keboola_v${version}.exe
GOARCH=amd64 GOOS=linux go build -o bin/linux_amd64/terraform-provider-keboola_v${version}
GOARCH=amd64 GOOS=darwin go build -o bin/darwin_amd64/terraform-provider-keboola_v${version}
GOARCH=amd64 GOOS=darwin go build -o bin/darwin_amd64/terraform-provider-keboola_v${version}

mkdir -p releases/
zip releases/terraform-provider-keboola_windows_amd64_v${version}.zip bin/windows_amd64/terraform-provider-keboola_v${version}.exe
zip releases/terraform-provider-keboola_linux_amd64_v${version}.zip bin/linux_amd64/terraform-provider-keboola_v${version}
zip releases/terraform-provider-keboola_darwin_amd64_v${version}.zip bin/darwin_amd64/terraform-provider-keboola_v${version}

0 comments on commit a52af5d

Please sign in to comment.