From bcf18c3bb1bd86cff6db239746d35b702c5f4840 Mon Sep 17 00:00:00 2001 From: pylipp Date: Thu, 30 Dec 2021 10:19:08 +0100 Subject: [PATCH] Update action for creating Github release --- .github/workflows/release.yml | 16 ++++------------ Changelog.md | 4 ++++ 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ba97e7e..7dd4fe4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,20 +23,12 @@ jobs: - name: Construct release body id: construct run: | - echo "RELEASEBODY<> $GITHUB_ENV - awk -v RS='' '/## \\[v/ {print $0; exit}' Changelog.md | tail -n+2 >> $GITHUB_ENV - echo "EOF" >> $GITHUB_ENV - env: - REPOSITORY: ${{ github.event.repository.name }} + awk -v RS='' '/\\[v/ {print $0; exit}' Changelog.md | tail -n+2 > release_notes.md - name: Create Github release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: softprops/action-gh-release@v1 with: - tag_name: ${{ github.ref }} - release_name: ${{ github.ref }} - body: | - $RELEASEBODY + body_path: release_notes.md + token: ${{ secrets.GITHUB_TOKEN }} - name: Build package and publish to PyPI env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} diff --git a/Changelog.md b/Changelog.md index 8b381a3..b955d8b 100644 --- a/Changelog.md +++ b/Changelog.md @@ -10,6 +10,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Removed ### Deprecated +## [v0.26.3.1] - 2021-12-30 +### Changed +- Update action for publishing Github release. + ## [v0.26.3.0] - 2021-12-28 ### Added - Add `--recurrent-only` option for `list` command. Filtering using `-f` and sorting using `--entry-sort` are supported. (#51)