aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.github/workflows/release.yml11
-rw-r--r--.goreleaser.yml1
2 files changed, 12 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 2c06d11..d95e437 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -20,9 +20,20 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
+ - name: Get Changelog Entry
+ id: changelog_reader
+ uses: mindsers/changelog-reader-action@v1.1.0
+ with:
+ version: ${{ github.ref }}
+ path: ./CHANGELOG.md
+
+ - name: Safe Changelog Text
+ run: echo "${{ steps.changelog_reader.outputs.log_entry }}" >> changelog_entry
+
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
version: latest
+ args: --release-notes changelog_entry
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.goreleaser.yml b/.goreleaser.yml
index 51ffd0d..4b328af 100644
--- a/.goreleaser.yml
+++ b/.goreleaser.yml
@@ -27,6 +27,7 @@ archives:
files:
- LICENSE
- README.md
+ - CHANGELOG.md
- config.yml.example
changelog: