Skip to content

Commit 6f33736

Browse files
committed
Updated actions and added GitHub release automation
1 parent 83b77e5 commit 6f33736

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/publish.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
environment: release
1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717
- name: Set up Python
1818
uses: actions/setup-python@v4
1919
with:
@@ -39,3 +39,20 @@ jobs:
3939
uses: actions/download-artifact@v3
4040
- name: Upload packages
4141
uses: pypa/gh-action-pypi-publish@release/v1
42+
43+
release:
44+
name: Create a GitHub release
45+
needs: build
46+
runs-on: ubuntu-latest
47+
permissions:
48+
contents: write
49+
steps:
50+
- uses: actions/checkout@v4
51+
- id: changelog
52+
uses: agronholm/release-notes@v1
53+
with:
54+
path: docs/news.rst
55+
pattern: "^\\*\\*([0-9a-z.]+) "
56+
- uses: ncipollo/release-action@v1
57+
with:
58+
body: ${{ steps.changelog.outputs.changelog }}

0 commit comments

Comments
 (0)