From 8ce7c9de7f8f9b955c61a6c03ba702c780512ca7 Mon Sep 17 00:00:00 2001 From: Victor Ruiz Date: Thu, 1 Feb 2024 10:49:55 +0100 Subject: [PATCH] Fix pipy deployment action --- .github/workflows/ci.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 73f946c..04f19f4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,18 +44,16 @@ jobs: with: python-version: "3.10" - - name: Install package and dependencies - run: >- - python -m pip install -e . + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine - - name: Publish distribution 📦 to Private PyPI + - name: Build and publish env: - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - AWS_DEFAULT_REGION: us-west-2 - AWS_DEFAULT_OUTPUT: json + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} + run: | - pip install awscli - pip install wheel python setup.py sdist bdist_wheel - aws s3 sync dist/ ***REMOVED*** + twine upload dist/*