File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,9 +2,14 @@ name: CI
22on :
33 push :
44 branches :
5- - master
5+ - main
6+ tags :
7+ - ' v*'
68 pull_request :
79
10+ env :
11+ PYTHON_BUILD_VERSION : ' 3.14'
12+
813jobs :
914 build :
1015 name : Build and Test
3742
3843 - name : Build package
3944 run : uv build
45+
46+ - name : Upload artifacts
47+ if : matrix.python-version == env.PYTHON_BUILD_VERSION
48+ uses : actions/upload-artifact@v6
49+ with :
50+ name : python-package-distributions
51+ path : dist/
52+
53+ publish :
54+ name : Publish to PyPI
55+ needs : build
56+ runs-on : ubuntu-latest
57+
58+ if : startsWith(github.ref, 'refs/tags/')
59+
60+ permissions :
61+ id-token : write
62+ contents : read
63+
64+ environment :
65+ name : release
66+ url : https://pypi.org/p/python-pdftables-api
67+
68+ steps :
69+ - name : Download artifacts
70+ uses : actions/download-artifact@v7
71+ with :
72+ name : python-package-distributions
73+ path : dist/
74+
75+ - name : Publish distribution to PyPI
76+ uses : pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " pdftables-api"
7- version = " 2.0 .0"
7+ version = " 2.1 .0"
88requires-python = " >=3.10"
99description = " PDFTables.com Python API library."
1010readme = " README.md"
You can’t perform that action at this time.
0 commit comments