From 9a0c09f087833b6511838b5bbf86c73f5e534b28 Mon Sep 17 00:00:00 2001 From: Prasanth Date: Wed, 7 Feb 2024 00:05:31 +0530 Subject: [PATCH] Fix release pipeline --- .github/workflows/python-publish.yml | 21 ++++++++++++--------- dothttp/__version__.py | 2 +- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 9edbfc8..ca6e748 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -10,9 +10,12 @@ on: jobs: deploy: - runs-on: ubuntu-latest - + environment: + name: pypi + url: https://pypi.org/p/dothttp-req + permissions: + id-token: write # IMPORTANT: this permission is mandatory for trusted publishing steps: - uses: actions/checkout@v2 - name: Set up Python @@ -28,14 +31,14 @@ jobs: # for integration tests docker run -d -p 8000:80 kennethreitz/httpbin python -m unittest - - name: Install dependencies + - name: Build Distribution run: | + # install prerequisites python -m pip install --upgrade pip pip install setuptools wheel twine - - name: Build and publish - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: | + + # build distribution python setup.py sdist bdist_wheel - twine upload dist/* + # retrieve your distributions here + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file diff --git a/dothttp/__version__.py b/dothttp/__version__.py index a4ef53a..3ff207d 100644 --- a/dothttp/__version__.py +++ b/dothttp/__version__.py @@ -1 +1 @@ -__version__ = '0.0.43a3' +__version__ = '0.0.43a4'