A GitHub release packages a point in your repository so others can download it. You will pick a version number, tag the commit and publish release notes. It suits beginners who already have a repo with code pushed to GitHub.
YouTube video: How to Release Code With Github
Caption availability is unknown. Check the CC control in the YouTube player.
Choose a chapter (7)
- Video length
- 7 min 47 s
- Time to do it
- 10 minutes
- Difficulty
- Easy
- Steps
- 7
What you need
Steps
Open your repository on github.com and decide the version number for this release. Use semantic versioning like 1.0.0, where the first number is a major change, the second a feature and the third a fix.
Go to the Code tab and note the commit you want to release. A tag marks that exact point in the repository history, so pick the commit that is ready to ship.
Click Releases in the right sidebar, then click Draft a new release. If you have no releases yet, use the Create a new release button.
In the Choose a tag field, type your version like v1.0.0 and click Create new tag on publish. Choose the target branch, usually main.
Add a release title, for example v1.0.0, and write short notes on what changed. You can also click Generate release notes to fill them from merged pull requests.
Optionally attach build files such as a zip or installer under Attach binaries by dropping them here or selecting them.
Leave Set as the latest release ticked, then click Publish release. The tag and release now appear on the repository.
Tips and common mistakes
Tag names and release titles are separate, so keep both consistent, like v1.0.0.
Only people with write access can manage releases, but anyone with read access can view and compare them.
You can automate release creation later with GitHub Actions instead of doing it by hand.
Questions
What is the difference between a tag and a release?
A tag is just a marker on a commit. A release builds on that tag and adds notes and downloadable files.
Can I edit a release after publishing it?
Yes. Open the release and click Edit to change the notes, title or attached files.
Do I need to create the tag first?
No. You can create the tag right in the release form when you publish.
The notes are drafted automatically from video details and general task knowledge. How the guide was prepared
Report a correction


