github.com/sergiusens/goreleaser@v0.34.3-0.20171009111917-ae6f7c157c5c/docs/140-ci.md (about)

     1  ---
     2  title: Continous Integration
     3  ---
     4  
     5  You may want to setup your project to auto-deploy your new tags on
     6  [Travis](https://travis-ci.org), for example:
     7  
     8  ```yaml
     9  # .travis.yml
    10  after_success:
    11    - test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash
    12  ```
    13  
    14  Here is how to do it with [CircleCI](https://circleci.com):
    15  
    16  ```yml
    17  # circle.yml
    18  deployment:
    19    tag:
    20      tag: /v[0-9]+(\.[0-9]+)*(-.*)*/
    21      owner: user
    22      commands:
    23        - curl -sL https://git.io/goreleaser | bash
    24  ```
    25  
    26  If you test multiple versions or multiple OSes, you probably want to
    27  make sure GoReleaser is just run once.
    28  You could change the above example for Travis CI like this:
    29  
    30  ```yaml
    31  # .travis.yml
    32  after_success:
    33    - test "$TRAVIS_OS_NAME" = "linux" -a -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash
    34  ```