Skip to content

Commit fb91f15

Browse files
authored
Merge pull request #231 from jburel/changelog2ghrelease
Create Release
2 parents 18a9a75 + 6180342 commit fb91f15

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/publish_pypi.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ jobs:
77
strategy:
88
matrix:
99
python-version:
10-
- '3.8'
11-
- '3.9'
1210
- '3.10'
1311
- '3.11'
1412
- '3.12'
@@ -24,7 +22,12 @@ jobs:
2422
python -mpip install build
2523
python -m build
2624
- name: Publish distribution to PyPI
27-
if: startsWith(github.ref, 'refs/tags') && startsWith(matrix.python-version, '3.9')
28-
uses: pypa/gh-action-pypi-publish@v1.13.0
25+
if: startsWith(github.ref, 'refs/tags') && startsWith(matrix.python-version, '3.10')
26+
uses: pypa/gh-action-pypi-publish@release/v1
2927
with:
3028
password: ${{ secrets.PYPI_PASSWORD }}
29+
- name: Create a GitHub release
30+
if: startsWith(github.ref, 'refs/tags') && startsWith(matrix.python-version, '3.10')
31+
run: gh release create --generate-notes "${GITHUB_REF#refs/tags/}"
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)