diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9535596..39a096b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,8 +13,6 @@ on: description: 'Version number for pre-releases; defaults to build number' required: false default: '' -env: - LATEST_PY_VERSION: '3.11' jobs: # Deploy stable builds on tags only, and pre-release builds from manual trigger ("workflow_dispatch") @@ -24,10 +22,9 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: ${{ env.LATEST_PY_VERSION }} + python-version: 3.12 - uses: snok/install-poetry@v1.3 with: - version: 1.5.1 # For python 3.7 compatibility virtualenvs-in-project: true - name: Set pre-release version @@ -39,7 +36,7 @@ jobs: poetry version $(poetry version -s).${{ env.pre-release-suffix }}${{ env.pre-release-version }} poetry version - - name: Build and publish to pypi - run: | - poetry build - poetry publish -u __token__ -p ${{ secrets.PYPI_TOKEN }} + - name: Build package distributions + run: poetry build + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/pyproject.toml b/pyproject.toml index 84687c5..1a5a2e5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "requests-ratelimiter" -version = "0.7.0" +version = "0.7.1" description = "Rate-limiting for the requests library" authors = ["Jordan Cook"] license = "MIT"