upload release to PyPI #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tag next release | |
on: | |
workflow_dispatch: | |
jobs: | |
tag-next-release: | |
name: Tag next release | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-tags: 'true' | |
- uses: actions/[email protected] | |
with: | |
python-version: 3.12 | |
- run: | | |
pip install build setuptools_scm | |
tag="$(python3 -m setuptools_scm --strip-dev)" | |
git tag "$tag" | |
git push origin "$tag" |