From a96548582a9c618113d265177187521588697c73 Mon Sep 17 00:00:00 2001 From: James Parkhurst Date: Tue, 24 Oct 2023 16:08:10 +0100 Subject: [PATCH] Trying to fix publishing workflow --- .github/workflows/python-publish.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 1ab37ea..27ece00 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -12,7 +12,12 @@ jobs: runs-on: ubuntu-latest - environment: deployment + environment: + name: deployment + url: https://pypi.org/project/python-parakeet/ + + permissions: + id-token: write steps: - uses: actions/checkout@v2 @@ -25,11 +30,8 @@ jobs: - name: Install dependencies run: | 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: | - python setup.py sdist - twine upload dist/* + pip install build + - name: Build package + run: python -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@release/v1