diff --git a/.github/workflows/CD.yaml b/.github/workflows/CD.yaml index c133c7a..b5d0067 100644 --- a/.github/workflows/CD.yaml +++ b/.github/workflows/CD.yaml @@ -32,3 +32,7 @@ jobs: env: POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }} run: poetry publish --username __token__ --password $POETRY_PYPI_TOKEN_PYPI + + environment: + name: Production + url: https://pypi.org/project/currency-quote/ \ No newline at end of file diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index df42c45..def523c 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -70,3 +70,20 @@ jobs: git push git tag -f $(poetry version -s) git push -f origin --tags + + + - name: Build package + run: poetry build + + - name: Repository Setup + run: | + poetry config repositories.test-pypi https://test.pypi.org/legacy/ + + - name: Publish package to TestPyPI + env: + POETRY_PYPI_TOKEN_PYPI: ${{ secrets.TEST_PYPI_TOKEN }} + run: poetry publish -r test-pypi -u __token__ --password $POETRY_PYPI_TOKEN_PYPI + + environment: + name: Development + url: https://test.pypi.org/project/currency-quote/ diff --git a/pyproject.toml b/pyproject.toml index eba5d9a..371deb9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "currency-quote" -version = "3.2.3" +version = "3.2.4" description = "Complete solution for extracting currency pair quotes data. With comprehensive testing, parameter validation, flexible configuration management, Hexagonal Architecture, CI/CD pipelines, code quality tools, and detailed documentation." authors = ["IvanildoBarauna "] readme = "README.md"