From bfd1e892a8f7578be27d8b778098285df0715559 Mon Sep 17 00:00:00 2001 From: Ronak Shah Date: Mon, 17 Jun 2024 04:58:46 -0400 Subject: [PATCH] Update python-publish.yml --- .github/workflows/python-publish.yml | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 69c91d2..04fc157 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -11,28 +11,24 @@ jobs: deploy: runs-on: ubuntu-latest - + environment: + name: pypi + url: https://pypi.org/p/biometrics + permissions: + id-token: write steps: - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: python-version: '3.x' - - name: Install Poetry - run: | - curl -sSL https://install.python-poetry.org | python - - poetry lock - - name: Install dependencies run: | - poetry install - - - name: Build package - run: poetry build - - - name: Publish package - env: - PYPI_API_TOKEN: ${{ secrets.PYPI_PASSWORD }} + python -m pip install --upgrade pip + pip install setuptools wheel + - name: Build run: | - poetry config pypi-token.pypi ${PYPI_API_TOKEN} - poetry publish + python setup.py sdist bdist_wheel + - name: pypi-publish + uses: pypa/gh-action-pypi-publish@v1.9.0 +