Skip to content
This repository was archived by the owner on Oct 14, 2024. It is now read-only.

Commit 1db009d

Browse files
committed
Get release notes from CHANGELOG
1 parent 49cc577 commit 1db009d

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/publish.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,19 @@ jobs:
3030
env:
3131
FLIT_INDEX_URL: https://upload.pypi.org/legacy/
3232
FLIT_USERNAME: __token__
33-
FLIT_PASSWORD: ${{ secrets. PYPI_API_TOKEN }}
33+
FLIT_PASSWORD: ${{ secrets. PYPI_API_TOKEN }}
34+
35+
release:
36+
name: Create release
37+
runs-on: ubuntu-latest
38+
needs: [publish]
39+
steps:
40+
- name: Checkout
41+
uses: actions/checkout@v4
42+
- name: Extract release notes
43+
id: extract-release-notes
44+
uses: ffurrer2/extract-release-notes@v1
45+
- name: Create release
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
run: gh release create --notes '${{ steps.extract-release-notes.outputs.release_notes }}' --title ${{ github.ref_name }} ${{ github.ref_name }}

0 commit comments

Comments
 (0)