Skip to content

Commit

Permalink
Added GitHub release automation
Browse files Browse the repository at this point in the history
Closes #374.
  • Loading branch information
agronholm committed Aug 31, 2023
1 parent cd6f05b commit fe99c76
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 fe99c76

Please sign in to comment.