Skip to content

Commit

Permalink
Updated actions and added GitHub release automation
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Oct 30, 2023
1 parent 83b77e5 commit 6f33736
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
environment: release
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand All @@ -39,3 +39,20 @@ 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@v4
- id: changelog
uses: agronholm/release-notes@v1
with:
path: docs/news.rst
pattern: "^\\*\\*([0-9a-z.]+) "
- uses: ncipollo/release-action@v1
with:
body: ${{ steps.changelog.outputs.changelog }}

0 comments on commit 6f33736

Please sign in to comment.