Skip to content

Commit

Permalink
Fix publish script so that it can release beta versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ewjoachim committed Jan 11, 2024
1 parent 15c258f commit 7c2a708
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/publish
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ set -eux

# This script is expected to be passed a PYPI_TOKEN env var

poetry version $(poetry run dunamai from git --pattern '(?P<base>\d+\.\d+\.\d+)')
poetry version $(poetry run dunamai from git --pattern '^(?P<base>\d+(\.\d+)*)([-._]?((?P<stage>[a-zA-Z]+)[-._]?(?P<revision>\d+)?))?$')
poetry publish --no-interaction --build --username "__token__" --password "$PYPI_TOKEN"
git restore pyproject.toml

0 comments on commit 7c2a708

Please sign in to comment.