Skip to content

Commit 6afd9d6

Browse files
committed
Updated GitHub workflows and added GH release automation
1 parent 7c724cf commit 6afd9d6

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.github/workflows/publish.yml

Lines changed: 17 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,19 @@ 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/versionhistory.rst
55+
- uses: ncipollo/release-action@v1
56+
with:
57+
body: ${{ steps.changelog.outputs.changelog }}

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
python-version: ["3.7", "3.10", "3.11", "3.12", "pypy-3.9"]
1515
runs-on: ${{ matrix.os }}
1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818
- name: Set up Python ${{ matrix.python-version }}
1919
uses: actions/setup-python@v4
2020
with:

0 commit comments

Comments
 (0)