github.com/goreleaser/goreleaser@v1.25.1/www/docs/ci/cirrus.md (about) 1 # Cirrus CI 2 3 Here is how to do it with [Cirrus CI](https://cirrus-ci.org): 4 5 ```yaml 6 # .cirrus.yml 7 task: 8 name: Release 9 only_if: $CIRRUS_TAG != '' # run only on tags 10 depends_on: 11 - Test 12 - Lint 13 # any other sanity tasks 14 env: 15 GITHUB_TOKEN: ENCRYPTED[ABC] 16 container: 17 image: goreleaser/goreleaser:latest 18 release_script: goreleaser 19 ``` 20 21 **Note:** you'll need to create an [encrypted variable](https://cirrus-ci.org/guide/writing-tasks/#encrypted-variables) 22 to store `GITHUB_TOKEN` for GoReleaser to access GitHub API.