Skip to content

Commit

Permalink
fix: better publishing workflow in GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Kryukov committed Sep 12, 2024
1 parent ce1bb4b commit 796d887
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,7 @@ jobs:
- name: Test with coverage and pytest
run: make test
- name: Build and publish package
run: poetry publish --build --username __token__ --password ${{ secrets.PYPI_API_TOKEN }}
run: poetry version ${GITHUB_REF_NAME#v} && poetry publish --build
env:
POETRY_HTTP_BASIC_PYPI_USERNAME: __token__
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "mongomock-motor"
version = "0.1.0"
version = "0.0.0"
description = "Best effort mock for AsyncIOMotorClient built on top of mongomock library."
authors = ["Michael Kryukov <mkrukov@bestplace.pro>"]
readme = "README.md"
Expand Down

0 comments on commit 796d887

Please sign in to comment.