Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Commit

Permalink
removes manual changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
dani-santos-code committed Mar 28, 2023
1 parent 432df8c commit c55fb49
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 34 deletions.
17 changes: 1 addition & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,6 @@ jobs:
with:
fetch-depth: 0

-
name: GPG config
run: |
mkdir -p ~/.gnupg
cat << EOF >> ~/.gnupg/options
keyserver keys.openpgp.org
keyserver-options auto-key-retrieve
EOF
-
name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
Expand All @@ -46,19 +37,13 @@ jobs:
go-version: 1.19
check-latest: true
cache: true
-
name: Build release changelog
run: |
version=${GITHUB_REF#refs/tags/v*}
mkdir -p tmp
sed '/^# \['$version'\]/,/^# \[/!d;//d;/^\s*$/d' CHANGELOG.md > tmp/release_changelog.md

-
name: Release
uses: goreleaser/goreleaser-action@b508e2e3ef3b19d4e4146d4f8fb3ba9db644a757
with:
distribution: goreleaser
version: v1.10.3
args: release --rm-dist --release-notes=tmp/release_changelog.md
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15 changes: 0 additions & 15 deletions CHANGELOG.md

This file was deleted.

4 changes: 1 addition & 3 deletions docs/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ If the changes since the most recent release are bug fixes only, bump the last n

3. Update the `VERSION` file if necessary. You'll have to open / merge a PR to do this.

4. update `CHANGELOG.md` with a summary of what has changed. Add a new version header at the top of the document, just after `Unreleased`

5. Create a tag with the new version and push it up to Github:
4. Create a tag with the new version and push it up to Github:

```
git tag -a <VERSION> -m "<VERSION>"
Expand Down

0 comments on commit c55fb49

Please sign in to comment.