We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9db151a + 7fc69eb commit 851b834Copy full SHA for 851b834
.github/workflows/publish.yml
@@ -32,4 +32,18 @@ jobs:
32
- name: Publish to PyPI
33
uses: pypa/gh-action-pypi-publish@release/v1
34
with:
35
- password: ${{ secrets.PYPI_TOKEN }}
+ password: ${{ secrets.PYPI_TOKEN }}
36
+
37
+ - name: Extract version from pyproject.toml
38
+ id: get_version
39
+ run: |
40
+ VERSION=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml', 'rb'))['project']['version'])")
41
+ echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
42
43
+ - name: Create GitHub Release
44
+ env:
45
+ GH_TOKEN: ${{ github.token }}
46
47
+ gh release create "v${{ steps.get_version.outputs.VERSION }}" \
48
+ --title "v${{ steps.get_version.outputs.VERSION }}" \
49
+ --generate-notes
0 commit comments