8000 chore: Release automatically when changed version.py by rafaeelaudibert · Pull Request #232 · PostHog/posthog-python · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore: Release automatically when changed version.py #232

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 29, 2025

Conversation

rafaeelaudibert
Copy link
Member

When pushing to master, we now automatically release a new version if we detect a change to version.py

When pushing to master, we now automatically release a new version if we detect a change to `version.py`
@rafaeelaudibert rafaeelaudibert requested a review from a team April 29, 2025 13:49
Copy link
Contributor
@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR automates the release process by triggering the release workflow whenever version.py is modified in the master branch, streamlining package publishing.

  • Added push trigger in /.github/workflows/release.yaml to watch for changes to posthog/version.py on master branch
  • Uses POSTHOG_BOT_GITHUB_TOKEN secret for authentication and release creation
  • Workflow detects version from version.py and uses it for both PyPI and GitHub releases
  • Maintains manual workflow_dispatch trigger as fallback option

1 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

Comment on lines +34 to +35
- name: Push release to PyPI
run: make release && make release_analytics
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Release commands could fail independently. Consider splitting into separate steps for better error visibility.

@rafaeelaudibert rafaeelaudibert merged commit 7bb7c90 into master Apr 29, 2025
6 checks passed
@rafaeelaudibert rafaeelaudibert deleted the release-automatically-when-changed-version branch April 29, 2025 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0