travis: resolve deployment issues
@@ -42,18 +42,15 @@ script:
- ./scripts/run-genswag.sh
- goveralls -service=travis-ci -coverprofile=coverage.txt
-after_success:
- - |-
- [ "${TRAVIS_TAG}" != "" ] && gox -ldflags "-X github.com/ory/hydra/cmd.Version=`git describe --tags` -X github.com/ory/hydra/cmd.BuildTime=`TZ=UTC date -u '+%Y-%m-%dT%H:%M:%SZ'` -X github.com/ory/hydra/cmd.GitHash=`git rev-parse HEAD`" -output "dist/{{.Dir}}-{{.OS}}-{{.Arch}}"
-
before_deploy:
- - npm version --no-git-tag-version $(git describe --tag)
+ - gox -ldflags "-X github.com/ory/hydra/cmd.Version=`git describe --tags` -X github.com/ory/hydra/cmd.BuildTime=`TZ=UTC date -u '+%Y-%m-%dT%H:%M:%SZ'` -X github.com/ory/hydra/cmd.GitHash=`git rev-parse HEAD`" -output "dist/{{.Dir}}-{{.OS}}-{{.Arch}}"
+ - npm version -f --no-git-tag-version $(git describe --tag)
deploy:
- provider: npm
api_key: "$NPM_TOKEN"
email: "$NPM_EMAIL"
- skip_cleanup: true
+ skip_cleanup: false
on:
tags: true
- provider: releases
