Skip to content

Commit

Permalink
Merge pull request #894 from mrapp-ke/fix-twine-installation
Browse files Browse the repository at this point in the history
Fix installation of twine in Github workflows
  • Loading branch information
michael-rapp authored May 5, 2024
2 parents 30e1b0f + 51b05fb commit f742e23
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/template_publish_non_native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/template_publish_platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/template_publish_pure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f742e23

Please sign in to comment.