Skip to content

Commit b5f789b

Browse files
Sazon, John Bryan Jbzon
authored andcommitted
Add deploy step to automatically create releases
1 parent 66dc230 commit b5f789b

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.travis.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,26 @@ script:
5555
go run main.go get groups
5656
go run main.go get projects
5757
travis_wait 30 make coverage
58+
- bash <(curl -s https://codecov.io/bash) # Set CODECOV_TOKEN in your environment variables.
5859

5960
after_script:
6061
- sleep 1
6162

62-
after_success:
63-
- bash <(curl -s https://codecov.io/bash) # Set CODECOV_TOKEN in your environment variables.
63+
before_deploy:
64+
- VERSION=${TRAVIS_TAG} make all
65+
66+
deploy:
67+
provider: releases
68+
api_key: $GITHUB_OAUTH_TOKEN
69+
file:
70+
- ./bin/gitlabctl-darwin-amd64
71+
- ./bin/gitlabctl-linux-amd64
72+
- ./bin/gitlabctl-windows-amd64.exe
73+
- ./bin/shasum256.txt
74+
skip_cleanup: true
75+
on:
76+
branch: master
77+
tags: true
78+
6479

6580

0 commit comments

Comments
 (0)