Skip to content

Commit 40a1687

Browse files
committed
Updated GitHub actions and added GH release publishing
1 parent fe65d30 commit 40a1687

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/publish.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010

1111
jobs:
1212
build:
13+
name: Build the source tarball and the wheel
1314
runs-on: ubuntu-latest
1415
environment: release
1516
steps:
@@ -29,6 +30,7 @@ jobs:
2930
path: dist
3031

3132
publish:
33+
name: Publish build artifacts to the PyPI
3234
needs: build
3335
runs-on: ubuntu-latest
3436
environment: release
@@ -39,3 +41,19 @@ jobs:
3941
uses: actions/download-artifact@v3
4042
- name: Upload packages
4143
uses: pypa/gh-action-pypi-publish@release/v1
44+
45+
release:
46+
name: Create a GitHub release
47+
needs: build
48+
runs-on: ubuntu-latest
49+
permissions:
50+
contents: write
51+
steps:
52+
- uses: actions/checkout@v4
53+
- id: changelog
54+
uses: agronholm/release-notes@v1
55+
with:
56+
path: docs/versionhistory.rst
57+
- uses: ncipollo/release-action@v1
58+
with:
59+
body: ${{ steps.changelog.outputs.changelog }}

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717
- name: Set up Python ${{ matrix.python-version }}
18-
uses: actions/setup-python@v4
18+
uses: actions/setup-python@v5
1919
with:
2020
python-version: ${{ matrix.python-version }}
2121
allow-prereleases: true

0 commit comments

Comments
 (0)