From f17ffdc3862230d18e37903d2a145e87a4213c50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= Date: Wed, 30 Aug 2023 12:12:19 +0300 Subject: [PATCH] Added a GitHub release job to the publishing workflow Closes #602. --- .github/workflows/publish.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 94b4dafe..5d39799e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,6 +10,7 @@ on: jobs: build: + name: Build the source tarball and the wheel runs-on: ubuntu-latest environment: release steps: @@ -29,6 +30,7 @@ jobs: path: dist publish: + name: Publish build artifacts to the PyPI needs: build runs-on: ubuntu-latest environment: release @@ -39,3 +41,19 @@ jobs: uses: actions/download-artifact@v3 - name: Upload packages uses: pypa/gh-action-pypi-publish@release/v1 + + release: + name: Create a GitHub release + needs: build + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v3 + - id: changelog + uses: agronholm/release-notes@v1 + with: + path: docs/versionhistory.rst + - uses: ncipollo/release-action@v1 + with: + body: ${{ steps.changelog.outputs.changelog }}