Skip to content

Commit c53b022

Browse files
committed
ci hacking
1 parent 9e93c51 commit c53b022

File tree

2 files changed

+31
-4
lines changed

2 files changed

+31
-4
lines changed

.github/workflows/python-package.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
python-version: ["3.13"]
19+
python-version: ["3.x"]
2020

2121
steps:
2222
- uses: actions/checkout@v4
@@ -46,3 +46,30 @@ jobs:
4646
- name: Build the package
4747
run: |
4848
python -m build
49+
- name: Store the distribution packages
50+
uses: actions/upload-artifact@v4
51+
with:
52+
name: python-package-distributions
53+
path: dist/
54+
55+
publish-to-pypi:
56+
name: >-
57+
Publish Python 🐍 distribution 📦 to PyPI
58+
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
59+
needs:
60+
- build
61+
runs-on: ubuntu-latest
62+
environment:
63+
name: pypi
64+
url: https://pypi.org/p/incrementalstats # Replace <package-name> with your PyPI project name
65+
permissions:
66+
id-token: write # IMPORTANT: mandatory for trusted publishing
67+
68+
steps:
69+
- name: Download all the dists
70+
uses: actions/download-artifact@v4
71+
with:
72+
name: python-package-distributions
73+
path: dist/
74+
- name: Publish distribution 📦 to PyPI
75+
uses: pypa/gh-action-pypi-publish@release/v1

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "incrementalstats"
3-
version = "0.0.1"
3+
version = "1.0.0"
44
authors = [
55
{ name = "Cees-Bart Breunesse", email = "ceeesb@gmail.com" },
66
]
@@ -14,5 +14,5 @@ classifiers = [
1414
]
1515

1616
[project.urls]
17-
"Homepage" = "https://github.com/xxx/pyincrementalstats"
18-
"Bug Tracker" = "https://github.com/xxx/pyincrementalstats/issues"
17+
"Homepage" = "https://github.com/ceesb/python-incrementalstats"
18+
"Bug Tracker" = "https://github.com/ceesb/python-incrementalstats/issues"

0 commit comments

Comments
 (0)