update release action to use python -m build
This commit is contained in:
parent
bb11f7674e
commit
bf4a04a378
|
@ -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 }}
|
||||
|
||||
|
|
Loading…
Reference in New Issue