| 1 |
Changie itself uses [GoReleaser](https://goreleaser.com) and can be integrated |
| 2 |
with a few steps. |
| 3 |
|
| 4 |
First make sure GoReleaser will even generate any changelog by setting skip to false. |
| 5 |
|
| 6 |
```yaml |
| 7 |
changelog: |
| 8 |
disable: false |
| 9 |
``` |
| 10 |
|
| 11 |
By default GoReleaser expects to release the current tag but we can let GitHub |
| 12 |
create one for us during the release. |
| 13 |
To do this set the goreleaser current tag environment variable using changie latest. |
| 14 |
|
| 15 |
```bash |
| 16 |
export GORELEASER_CURRENT_TAG="$(changie latest)" |
| 17 |
``` |
| 18 |
|
| 19 |
Finally we can run GoReleaser, you will need to add two parameters, release notes and skip validate. |
| 20 |
We need to use skip validate because we skip the git tag. |
| 21 |
If you choose to tag the commit instead you do not need to use this. |
| 22 |
|
| 23 |
```bash |
| 24 |
goreleaser --release-notes="changes/$(changie latest)" --skip-validate |
| 25 |
``` |
| 26 |
|
| 27 |
If you would like to use the goreleaser github action you can reference [release.yaml](https://github.com/miniscruff/changie/blob/main/.github/workflows/release.yml). |