Skip to content

Commit

Permalink
ci: add write_to version on pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreSenpai committed Apr 8, 2024
1 parent 68a3110 commit 213db8f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/dev-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ jobs:
testing-deploy:
name: Pypi
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/enma
permissions:
id-token: write

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -43,7 +48,7 @@ jobs:
python -m build
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@v1.8.14
with:
repository-url: https://test.pypi.org/legacy/
user: __token__
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ requires = ["setuptools>=64", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
version_scheme = "post-release"
version_scheme = "post-release"
write_to = enma/_version.py

0 comments on commit 213db8f

Please sign in to comment.