Skip to content
GoReleaser v2.20 is out! with an SSH key disclosure fix, ko platform templates, GitLab asset types, and more!

Cirrus CI

Here is how to do it with Cirrus CI:

.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 to store GITHUB_TOKEN so GoReleaser can access the GitHub API.

Last updated on