From 51b05fbbd57002ee1741f6603b068beacc347c68 Mon Sep 17 00:00:00 2001 From: Michael Rapp Date: Sun, 5 May 2024 18:47:48 +0200 Subject: [PATCH] Fix installation of twine in Github workflows. --- .github/workflows/template_publish_non_native.yml | 2 ++ .github/workflows/template_publish_platform.yml | 2 ++ .github/workflows/template_publish_pure.yml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/.github/workflows/template_publish_non_native.yml b/.github/workflows/template_publish_non_native.yml index beca6fbeb2..ac506828ed 100644 --- a/.github/workflows/template_publish_non_native.yml +++ b/.github/workflows/template_publish_non_native.yml @@ -52,8 +52,10 @@ jobs: TWINE_PASSWORD: ${{ secrets.pypi_password }} TWINE_REPOSITORY: ${{ inputs.pypi_repository }} run: | + source venv/bin/activate python3 -m pip install twine python3 -m twine upload --non-interactive --skip-existing wheelhouse/* + deactivate - name: Upload wheels as artifacts if: ${{ inputs.pypi_repository }} uses: actions/upload-artifact@v4 diff --git a/.github/workflows/template_publish_platform.yml b/.github/workflows/template_publish_platform.yml index 5238f8392e..aba661e76c 100644 --- a/.github/workflows/template_publish_platform.yml +++ b/.github/workflows/template_publish_platform.yml @@ -55,8 +55,10 @@ jobs: TWINE_PASSWORD: ${{ secrets.pypi_password }} TWINE_REPOSITORY: ${{ inputs.pypi_repository }} run: | + source venv/bin/activate python3 -m pip install twine python3 -m twine upload --non-interactive --skip-existing wheelhouse/* + deactivate - name: Upload wheels as artifacts if: ${{ inputs.pypi_repository }} uses: actions/upload-artifact@v4 diff --git a/.github/workflows/template_publish_pure.yml b/.github/workflows/template_publish_pure.yml index 46ee5235b4..57dd7045da 100644 --- a/.github/workflows/template_publish_pure.yml +++ b/.github/workflows/template_publish_pure.yml @@ -40,8 +40,10 @@ jobs: TWINE_PASSWORD: ${{ secrets.pypi_password }} TWINE_REPOSITORY: ${{ inputs.pypi_repository }} run: | + source venv/bin/activate python3 -m pip install twine python3 -m twine upload --non-interactive --skip-existing wheelhouse/* + deactivate - name: Upload wheels as artifacts if: ${{ inputs.pypi_repository }} uses: actions/upload-artifact@v4