From 27f582c5d0f5c74ff4b17085e740c9568dad58d4 Mon Sep 17 00:00:00 2001 From: Gal Topper Date: Mon, 18 Nov 2024 12:38:42 +0800 Subject: [PATCH] Try to use twine instead of release action --- .github/workflows/release.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fbf06d01..5176c059 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,8 +36,10 @@ jobs: run: make set-version - name: Build binary wheel and source tarball run: make dist - - name: Publish package - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.PYPI_TOKEN }} + - name: Install publish dependencies + run: python -m pip install twine~=5.1 + - name: Push to pypi + run: | + export TWINE_USERNAME=__token__ + export TWINE_PASSWORD=${{ secrets.PYPI_TOKEN }} + python -m twine upload dist/storey-*.whl