Back to Goreleaser

Cirrus CI

www/content/customization/ci/cirrus.md

2.15.4538 B
Original Source

Here is how to do it with Cirrus CI:

yaml
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 for GoReleaser to access GitHub API.