aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-05-05 00:38:12 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-05-05 00:38:12 +0200
commite190f87680344fe795f8fde42e71c8d0b56c914d (patch)
tree122199a1d7e110139359fde6b418e9f790e8cafc
parentbcc9884809ac63d4a13f8044aef2920b84aea6b2 (diff)
downloadfeed2imap-go-e190f87680344fe795f8fde42e71c8d0b56c914d.tar.gz
feed2imap-go-e190f87680344fe795f8fde42e71c8d0b56c914d.tar.bz2
feed2imap-go-e190f87680344fe795f8fde42e71c8d0b56c914d.zip
Make changelog a part of the release pipeline (untested)
-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: