René's URL Explorer Experiment


Title: Release automatically when the version changes by jonathan-kosgei · Pull Request #37 · ipdata/python · GitHub

Open Graph Title: Release automatically when the version changes by jonathan-kosgei · Pull Request #37 · ipdata/python

X Title: Release automatically when the version changes by jonathan-kosgei · Pull Request #37 · ipdata/python

Description: Summary Add a release job to .github/workflows/python-publish.yml that runs after the test matrix on every push to master, reads the version from setup.cfg and, when no tag of that name exists yet, creates the tag and the GitHub release (with generated notes) in one step. Make build-n-publish wait for that job and upload to PyPI when the tag was created in the same run; a tag pushed by hand still publishes as before. Add a maintainer-facing "Releasing" section to the README. How it works release is guarded by github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch), needs test, runs with permissions: contents: write and in the release concurrency group without cancellation, so two merges in a row release one after the other. It reads the version with sed -nE 's/^version *= *([^[:space:]]+).*/\1/p' setup.cfg | head -1 (tags carry no v prefix, matching the existing tags) and checks git ls-remote --exit-code --tags origin "refs/tags/$TAG": exit 0 means the tag exists and the job reports that there is nothing to release (created=false); exit 2 means it is missing, so gh release create "$TAG" --target "$GITHUB_SHA" --title "$TAG" --generate-notes creates the tag and the release with the workflow's own GITHUB_TOKEN (created=true); any other exit code fails the job. A tag created with GITHUB_TOKEN does not start another workflow run, so publishing happens in the same run: build-n-publish now has needs: [test, release] and its "Publish to PyPI" step runs when needs.release.outputs.created == 'true' or, as before, when the run was started by a tag push (startsWith(github.ref, 'refs/tags')). The job itself still runs for every push (full test suite with the API key, then the build), and its condition tolerates the release job being skipped on tag pushes. Nothing else changes: the pull_request test matrix, the full-suite run on master, the publish steps and the secrets they use are as before. The version currently in setup.cfg (4.1.0) is already tagged, so merging this pull request releases nothing by itself. Verification python3 -c 'import yaml,sys; [yaml.safe_load(open(f)) for f in sys.argv[1:]]' .github/workflows/*.yml passes. actionlint .github/workflows/*.yml (v1.7.12) reports nothing. The version command prints 4.1.0 for the checked-out setup.cfg. The test matrix runs on this pull request; the push-only release job can only be exercised by a merge. 🤖 Generated with Claude Code

Open Graph Description: Summary Add a release job to .github/workflows/python-publish.yml that runs after the test matrix on every push to master, reads the version from setup.cfg and, when no tag of that name exists yet...

X Description: Summary Add a release job to .github/workflows/python-publish.yml that runs after the test matrix on every push to master, reads the version from setup.cfg and, when no tag of that name exists yet...

Opengraph URL: https://github.com/ipdata/python/pull/37

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:9254a17c-08f7-a062-2f2b-7ea675050c98
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8F22:B1B84:2921BAB:34599F6:6B01DB97
html-safe-nonced426ca2ab87123008afd5c07ccfef4007223c9b9d843bef134b850cf5971bab8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjIyOkIxQjg0OjI5MjFCQUI6MzQ1OTlGNjo2QjAxREI5NyIsInZpc2l0b3JfaWQiOiI2Mzc4MTUyNTI4MDA1MTU5ODMxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacf82961a6c31b3c7953261569a8b835b2ce013d627017f586dce9cd1938318499
hovercard-subject-tagpull_request:5142487854
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/ipdata/python/pull/37/files
twitter:imagehttps://avatars.githubusercontent.com/u/6712914?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/6712914?s=400&v=4
og:image:altSummary Add a release job to .github/workflows/python-publish.yml that runs after the test matrix on every push to master, reads the version from setup.cfg and, when no tag of that name exists yet...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/ipdata/python git https://github.com/ipdata/python.git
octolytics-dimension-user_id33085067
octolytics-dimension-user_loginipdata
octolytics-dimension-repository_id108238848
octolytics-dimension-repository_nwoipdata/python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id108238848
octolytics-dimension-repository_network_root_nwoipdata/python
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/ipdata/python/pull/37/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fipdata%2Fpython%2Fpull%2F37%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fipdata%2Fpython%2Fpull%2F37%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=ipdata%2Fpython
Reloadhttps://github.com/ipdata/python/pull/37/files
Reloadhttps://github.com/ipdata/python/pull/37/files
Reloadhttps://github.com/ipdata/python/pull/37/files
ipdatahttps://github.com/ipdata
pythonhttps://github.com/ipdata/python
Codehttps://github.com/ipdata/python
Issues2 (2)https://github.com/ipdata/python/issues
Pull requestshttps://github.com/ipdata/python/pulls
Actionshttps://github.com/ipdata/python/actions
Projectshttps://github.com/ipdata/python/projects
Security and qualityhttps://github.com/ipdata/python/security
Insightshttps://github.com/ipdata/python/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fipdata%2Fpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fipdata%2Fpython%2Fissues%2Fnew%2Fchoose
jonathan-kosgeihttps://github.com/jonathan-kosgei
masterhttps://github.com/ipdata/python/tree/master
auto-releasehttps://github.com/ipdata/python/tree/auto-release
Conversation 0 https://github.com/ipdata/python/pull/37
Commits 1 https://github.com/ipdata/python/pull/37/commits
Checks 8 https://github.com/ipdata/python/pull/37/checks
Files changed https://github.com/ipdata/python/pull/37/files
Please reload this pagehttps://github.com/ipdata/python/pull/37/files
Release automatically when the version changes https://github.com/ipdata/python/pull/37/files#top
Show all changes 1 commit https://github.com/ipdata/python/pull/37/files
75dc563 Release automatically when the version in setup.cfg changes claude Nov 3, 2026 https://github.com/ipdata/python/pull/37/commits/75dc563b09065de047f83b83c19783f7cb27d9e6
Clear filters https://github.com/ipdata/python/pull/37/files
Please reload this pagehttps://github.com/ipdata/python/pull/37/files
Please reload this pagehttps://github.com/ipdata/python/pull/37/files
python-publish.yml https://github.com/ipdata/python/pull/37/files#diff-87c8be2ac3b248aef84cc474af838d7cc461b7f8fb7f5444ac75f4d8fc02e377
README.md https://github.com/ipdata/python/pull/37/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
.github/workflows/python-publish.ymlhttps://github.com/ipdata/python/pull/37/files#diff-87c8be2ac3b248aef84cc474af838d7cc461b7f8fb7f5444ac75f4d8fc02e377
View file https://github.com/ipdata/python/blob/75dc563b09065de047f83b83c19783f7cb27d9e6/.github/workflows/python-publish.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/ipdata/python/pull/37/{{ revealButtonHref }}
https://github.com/ipdata/python/pull/37/files#diff-87c8be2ac3b248aef84cc474af838d7cc461b7f8fb7f5444ac75f4d8fc02e377
https://github.com/ipdata/python/pull/37/files#diff-87c8be2ac3b248aef84cc474af838d7cc461b7f8fb7f5444ac75f4d8fc02e377
https://github.com/ipdata/python/pull/37/files#diff-87c8be2ac3b248aef84cc474af838d7cc461b7f8fb7f5444ac75f4d8fc02e377
README.mdhttps://github.com/ipdata/python/pull/37/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
View file https://github.com/ipdata/python/blob/75dc563b09065de047f83b83c19783f7cb27d9e6/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/ipdata/python/pull/37/{{ revealButtonHref }}
https://github.com/ipdata/python/pull/37/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/ipdata/python/pull/37/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/ipdata/python/pull/37/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.