Skip to content

Commit c9dce96

Browse files
committed
Add PyPI publish workflow and bump version to 1.0.0
1 parent 3d250eb commit c9dce96

3 files changed

Lines changed: 46 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
python-version: ["3.11", "3.12"]
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-python@v5
16+
with:
17+
python-version: ${{ matrix.python-version }}
18+
- run: pip install -e ".[dev]"
19+
- run: pytest --tb=short -q
20+
21+
publish:
22+
needs: test
23+
runs-on: ubuntu-latest
24+
environment: pypi
25+
permissions:
26+
id-token: write # Required for trusted publishing
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: actions/setup-python@v5
30+
with:
31+
python-version: "3.12"
32+
- run: pip install build
33+
- run: python -m build
34+
- uses: pypa/gh-action-pypi-publish@release/v1

pyproject.toml

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

66
[project]
77
name = "scraperguard"
8-
version = "0.1.0"
8+
version = "1.0.0"
99
readme = "README.md"
1010
requires-python = ">=3.11"
1111
description = "Production-grade observability and reliability layer for web scraping pipelines."

uv.lock

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)