Skip to content

Commit c25249b

Browse files
committed
Uploading to testpypi
1 parent da8a8b4 commit c25249b

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.github/workflows/build_wheels.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,25 @@ jobs:
6060
with:
6161
name: cibw-sdist
6262
path: dist/*.tar.gz
63+
64+
upload_pypi:
65+
needs: [build_wheels, build_sdist]
66+
runs-on: ubuntu-latest
67+
environment: pypi
68+
permissions:
69+
id-token: write
70+
# if: github.event_name == 'release' && github.event.action == 'published'
71+
# or, alternatively, upload to PyPI on every tag starting with 'v' (remove on: release above to use this)
72+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
73+
steps:
74+
- uses: actions/download-artifact@v5
75+
with:
76+
# unpacks all CIBW artifacts into dist/
77+
pattern: cibw-*
78+
path: dist
79+
merge-multiple: true
80+
81+
- uses: pypa/gh-action-pypi-publish@release/v1
82+
# To test uploads to TestPyPI, uncomment the following:
83+
with:
84+
repository-url: https://test.pypi.org/legacy/

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ cmake.source-dir = "skbuild"
99
name = "IsoSpecPy"
1010
dependencies = ["cffi"]
1111
description = "IsoSpecPy is a Python library for computing isotopic distributions of molecules."
12-
version = "2.3.0dev6"
12+
version = "2.3.0dev7"
1313
license = "BSD-2-Clause"
1414
license-files = ["LICENCE"]
1515
authors = [{name = "Michał Startek"}, {name = "Mateusz Łącki"}]

0 commit comments

Comments
 (0)