File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -147,9 +147,15 @@ jobs:
147147 - name : Collected dists
148148 run : |
149149 tree dist
150- - name : Convert README.rst to Markdown
150+ - name : Extract release notes from Git tag
151151 run : |
152- pandoc -s -o README.md README.rst
152+ set -e
153+ git for-each-ref github.ref --format='%(contents)' > release-notes.rst
154+ # Strip PGP signature from signed tags
155+ sed -i "/-----BEGIN PGP SIGNATURE-----/,/-----END PGP SIGNATURE-----\n/d" release-notes.rst
156+ - name : Convert Release Notes to Markdown
157+ run : |
158+ pandoc -s -o release-notes.md release-notes.rst
153159 - name : PyPI upload
154160 uses : pypa/gh-action-pypi-publish@v1.12.4
155161 with :
@@ -161,6 +167,6 @@ jobs:
161167 with :
162168 name : pytest-asyncio ${{ needs.lint.outputs.version }}
163169 artifacts : dist/*
164- bodyFile : README .md
170+ bodyFile : release-notes .md
165171 prerelease : ${{ needs.lint.outputs.prerelease }}
166172 token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments