Skip to content

Commit

Permalink
Deploy to TestPyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
tschoonj committed Jul 30, 2024
1 parent ae8b16f commit 45b4a7d
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/build-publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,32 @@ jobs:
path: dist/*.tar.gz
retention-days: 1

publish-to-testpypi:
name: Upload to TestPyPI
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest

environment:
name: testpypi
url: https://test.pypi.org/p/xraylib

permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing

steps:
- uses: actions/download-artifact@v4
with:
# unpacks all CIBW artifacts into dist/
pattern: cibw-*
path: dist
merge-multiple: true
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

upload_pypi:
name: Upload to pypi
name: Upload to PyPI
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
environment: pypi
Expand Down

0 comments on commit 45b4a7d

Please sign in to comment.