Skip to content

Commit 4111564

Browse files
authored
Merge pull request #52 from pdftables/v2.1.0-release
Update for v2.1.0 release
2 parents 8dd3bb2 + 6085ec5 commit 4111564

2 files changed

Lines changed: 39 additions & 2 deletions

File tree

.github/workflows/ci-build.yml

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@ name: CI
22
on:
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+
813
jobs:
914
build:
1015
name: Build and Test
@@ -37,3 +42,35 @@ jobs:
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

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "pdftables-api"
7-
version = "2.0.0"
7+
version = "2.1.0"
88
requires-python = ">=3.10"
99
description = "PDFTables.com Python API library."
1010
readme = "README.md"

0 commit comments

Comments
 (0)