Skip to content

Commit 1860205

Browse files
ilyazubCopilot
andcommitted
v1.0.2: green PyPI badge, RTD deploy on release
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 69d54e4 commit 1860205

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.github/workflows/release.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,28 @@ jobs:
9292
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
9393
run: twine upload dist/*
9494

95+
docs:
96+
name: Deploy docs to Read the Docs
97+
needs: [publish]
98+
runs-on: ubuntu-latest
99+
steps:
100+
- name: Trigger Read the Docs build
101+
run: |
102+
VERSION=${GITHUB_REF_NAME#v}
103+
# Activate and build the tagged version
104+
curl -sf -X PATCH \
105+
-H "Authorization: Token ${{ secrets.READTHEDOCS_TOKEN }}" \
106+
-H "Content-Type: application/json" \
107+
-d '{"active": true}' \
108+
"https://readthedocs.org/api/v3/projects/serpapi-python/versions/v${VERSION}/" || true
109+
curl -sf -X POST \
110+
-H "Authorization: Token ${{ secrets.READTHEDOCS_TOKEN }}" \
111+
"https://readthedocs.org/api/v3/projects/serpapi-python/versions/v${VERSION}/builds/"
112+
# Also rebuild stable/latest
113+
curl -sf -X POST \
114+
-H "Authorization: Token ${{ secrets.READTHEDOCS_TOKEN }}" \
115+
"https://readthedocs.org/api/v3/projects/serpapi-python/versions/stable/builds/" || true
116+
95117
smoke-test:
96118
name: Smoke test published package
97119
needs: [publish]

serpapi/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.0.1"
1+
__version__ = "1.0.2"

0 commit comments

Comments
 (0)