Skip to content

Commit

Permalink
Attempt to use towncrier for release notes (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
alcarney authored Mar 19, 2020
1 parent e1bfcea commit 315b904
Show file tree
Hide file tree
Showing 10 changed files with 673 additions and 531 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/python-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,27 @@ jobs:
asset_content_type: application/octet-stream
# </release-job-upload>

# <release-job-notes>
- name: Upload Release Notes
shell: bash
run: |
python -m pip install towncrier docutils
./scripts/write-release-notes.sh > release-notes.html
notes=$(cat release-notes.html)
echo $notes
curl -s -X PATCH https://api.github.com/repos/${{ github.repository }}/releases/${{ steps.release.outputs.id }} \
-H "Authorization: token $GITHUB_TOKEN" \
-d @- << EOF
{
"body": "$notes"
}
EOF
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# </release-job-notes>

# <release-job-pypi>
- name: Publish to PyPi
run: |
Expand Down
Loading

0 comments on commit 315b904

Please sign in to comment.