1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-10 03:47:03 +02:00
goreleaser/docs/140-ci.md

35 lines
798 B
Markdown
Raw Normal View History

2017-09-10 22:07:28 +02:00
---
title: Continous Integration
2017-09-10 22:07:28 +02:00
---
You may want to setup your project to auto-deploy your new tags on
2017-09-11 15:13:14 +02:00
[Travis](https://travis-ci.org), for example:
2017-09-10 22:07:28 +02:00
```yaml
# .travis.yml
after_success:
- test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash
```
Here is how to do it with [CircleCI](https://circleci.com):
```yml
# circle.yml
deployment:
tag:
tag: /v[0-9]+(\.[0-9]+)*(-.*)*/
owner: user
commands:
- curl -sL https://git.io/goreleaser | bash
```
If you test multiple versions or multiple OSes, you probably want to
2017-09-11 15:13:14 +02:00
make sure GoReleaser is just run once.
You could change the above example for Travis CI like this:
```yaml
# .travis.yml
after_success:
- test "$TRAVIS_OS_NAME" = "linux" -a -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash
```