Grab release SHA during build.

This commit is contained in:
David Newhall II 2019-06-12 13:20:23 -07:00
parent 055aa688dc
commit ee1173e19f
1 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,7 @@ go:
- 1.12.x
before_install:
- mkdir -p $GOPATH/bin
# This deploy is not used atm.
# This deploy key is not used atm.
- openssl aes-256-cbc -K $encrypted_9f3147001275_key -iv $encrypted_9f3147001275_iv -in .github_deploy_key.enc -out github_deploy_key -d
- chmod 600 github_deploy_key
- eval $(ssh-agent -s)
@ -20,11 +20,13 @@ before_install:
- chmod +x $GOPATH/bin/dep
# download super-linter: golangci-lint
- curl -sL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin latest
- curl -sLo ./up.tgz https://github.com/davidnewhall/unifi-poller/archive/${TRAVIS_TAG}.tar.gz
install:
- dep ensure
- rvm $brew_ruby do gem install --no-document fpm
script:
- rvm $brew_ruby do make release
- openssl dgst -sha256 ./up.tgz | tee release/${TRAVIS_TAG}.tar.gz.sha256
deploy:
provider: releases
api_key: