1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-04 03:11:55 +02:00
goreleaser/www/docs/ci/cirrus.md
2020-07-14 14:32:09 -03:00

23 lines
541 B
Markdown

# Cirrus CI
Here is how to do it with [Cirrus CI](https://cirrus-ci.org):
```yaml
# .cirrus.yml
task:
name: Release
only_if: $CIRRUS_TAG != '' # run only on tags
depends_on:
- Test
- Lint
# any other sanity tasks
env:
GITHUB_TOKEN: ENCRYPTED[ABC]
container:
image: goreleaser/goreleaser:latest
release_script: goreleaser
```
**Note:** you'll need to create an [encrypted variable](https://cirrus-ci.org/guide/writing-tasks/#encrypted-variables)
to store `GITHUB_TOKEN` for GoReleaser to access GitHub API.