-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Setup release workflow with trusted publisher #9852
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
base: main
Are you sure you want to change the base?
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Following django-commons template
51d9dc5 to
0b8463c
Compare
I thought this would be a trivial change that didn't deserve its own pull request, but you having a differing viewpoint proved me that it's not that trivial, so I've moved this out of this change: Will be a better place to discuss it - will hide the previous comment as outdated from here to not pollute this PR |
|
Actually I should probably update the release process at the same time. Create pull request for [release notes](https://github.com/encode/django-rest-framework/blob/mains/docs/topics/release-notes.md) based on the [*.*.* milestone](https://github.com/encode/django-rest-framework/milestones/***).
Update supported versions:
Ensure the pull request increments the version to `*.*.*` in [`restframework/__init__.py`](https://github.com/encode/django-rest-framework/blob/main/rest_framework/__init__.py).
Ensure documentation validates
Confirm that release is finalized and ready to go.
Ensure that release date is included in pull request.
Merge the release pull request.
-Install the release tools: `pip install build twine`
-Build the package: `python -m build`
-Push the package to PyPI with `twine upload dist/*`
-Tag the release, with `git tag -a *.*.* -m 'version *.*.*'; git push --tags`.
-Deploy the documentation with `mkdocs gh-deploy`.
+Create the git tag
+Wait for the release workflow to run. It will build the distribution, upload it to Test PyPI, PyPI and create the GitHub release
Make a release announcement on the [discussion group](https://groups.google.com/forum/?fromgroups#!forum/django-rest-framework).
-Make a release announcement on twitter.
+Make a release announcement on social media.
Close the milestone on GitHub. |
Description
Following django-commons template. Trusted publisher has been configured in PyPI and Test PyPI.
Lifted out from #9782 to take advantage of it before the org move. It's time we make a new release, there are a number of unreleased changes, including a few which are making our updated upstream support official.