Skip to content

Commit

Permalink
Update action for creating Github release
Browse files Browse the repository at this point in the history
  • Loading branch information
pylipp committed Dec 30, 2021
1 parent 5082cf9 commit bcf18c3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,12 @@ jobs:
- name: Construct release body
id: construct
run: |
echo "RELEASEBODY<<EOF" >> $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 }}
Expand Down
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bcf18c3

Please sign in to comment.