File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed
Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 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]
Original file line number Diff line number Diff line change 1- __version__ = "1.0.1 "
1+ __version__ = "1.0.2 "
You can’t perform that action at this time.
0 commit comments