update release action to use python -m build

This commit is contained in:
deltragon 2024-07-14 17:29:49 +02:00
parent bb11f7674e
commit bf4a04a378
1 changed files with 6 additions and 5 deletions

View File

@ -24,15 +24,16 @@ jobs:
pip install build wheel
- name: Get Current Version
run: |
project_version=$(python3 setup.py --version)
echo "project_version=$project_version" >> $GITHUB_OUTPUT
uses: SebRollen/toml-action@v1.2.0
with:
file: "pyproject.toml"
field: project.version
id: get_current_version
- name: Create Tag
uses: mathieudutour/github-tag-action@v6.1
with:
custom_tag: "${{steps.get_current_version.outputs.project_version}}"
custom_tag: "${{steps.get_current_version.outputs.value}}"
github_token: ${{ secrets.GH_API_SECRET }}
- name: Build Changelog
@ -44,7 +45,7 @@ jobs:
- name: Create Release
uses: softprops/action-gh-release@v1
with:
tag_name: 'v${{steps.get_current_version.outputs.project_version}}'
tag_name: 'v${{steps.get_current_version.outputs.value}}'
body: ${{steps.build_changelog.outputs.changelog}}
token: ${{ secrets.GH_API_SECRET }}