Skip to content

Commit

Permalink
Added a GitHub release job to the publishing workflow
Browse files Browse the repository at this point in the history
Closes #602.
  • Loading branch information
agronholm committed Aug 30, 2023
1 parent dea1921 commit f17ffdc
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

jobs:
build:
name: Build the source tarball and the wheel
runs-on: ubuntu-latest
environment: release
steps:
Expand All @@ -29,6 +30,7 @@ jobs:
path: dist

publish:
name: Publish build artifacts to the PyPI
needs: build
runs-on: ubuntu-latest
environment: release
Expand All @@ -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 }}

0 comments on commit f17ffdc

Please # to comment.