Skip to content

Commit

Permalink
prepare for trusted publisher releases to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Oct 5, 2024
1 parent fc69216 commit 0870573
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ jobs:

upload-pypi:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -87,14 +89,10 @@ jobs:

- name: Publish package (to TestPyPI)
if: github.event_name == 'workflow_dispatch' && github.repository == 'nRF24/CircuitPython_nRF24L01'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
run: twine upload --repository testpypi dist/*
uses: pypa/[email protected]
with:
repository-url: https://test.pypi.org/legacy/

- name: Publish package (to PyPI)
if: github.event_name != 'workflow_dispatch' && github.repository == 'nRF24/CircuitPython_nRF24L01'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: twine upload dist/*
uses: pypa/[email protected]

0 comments on commit 0870573

Please sign in to comment.