Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
Add workflow to publish and create release notes from CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
samwelkanda committed Jan 10, 2024
1 parent 13da1b8 commit 116eaa2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 39 deletions.
4 changes: 0 additions & 4 deletions .github/release_template.md

This file was deleted.

21 changes: 18 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish package to PyPI
name: Publish package to PyPI and create release

on:
push:
Expand All @@ -18,10 +18,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python 3.11
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.11
python-version: 3.12
- name: Install flit
run: |
pip install flit
Expand All @@ -31,3 +31,18 @@ jobs:
FLIT_INDEX_URL: https://upload.pypi.org/legacy/
FLIT_USERNAME: __token__
FLIT_PASSWORD: ${{ secrets. PYPI_API_TOKEN }}

release:
name: Create release
runs-on: ubuntu-latest
needs: [publish]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Extract release notes
id: extract-release-notes
uses: ffurrer2/extract-release-notes@v1
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create --notes '${{ steps.extract-release-notes.outputs.release_notes }}' --title ${{ github.ref_name }} ${{ github.ref_name }}
32 changes: 0 additions & 32 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit 116eaa2

Please sign in to comment.