mirror of
https://github.com/par274/sharpemu.git
synced 2026-07-22 19:06:15 +08:00
1.9 KiB
1.9 KiB
Release Script
SharpEmu releases are prepared and published using scripts/release.py.
The release process consists of two steps:
- Prepare the version bump through a pull request.
- Create and push the release tag after the pull request has been merged.
Preparing a Release
Run:
python scripts/release.py prepare 0.0.2-beta.2
This command will:
- Verify that the working tree is clean.
- Update the local
mainbranch. - Create a new branch named
release/0.0.2-beta.2. - Update
SharpEmuVersioninDirectory.Build.props. - Create a version bump commit.
- Push the release branch to the remote repository.
Afterwards, open a pull request from:
release/0.0.2-beta.2
into:
main
Publishing a Release
Once the pull request has been merged, update your local repository:
git switch main
git pull --ff-only
Then create and push the release tag:
python scripts/release.py tag 0.0.2-beta.2
This command will:
- Verify that the working tree is clean.
- Confirm that
Directory.Build.propscontains the requested version. - Create an annotated Git tag (
v0.0.2-beta.2). - Push the tag to the remote repository.
Pushing the tag automatically triggers the GitHub Release workflow.
Version Format
Specify the version without the v prefix.
Examples:
0.0.2
0.0.2-alpha.1
0.0.2-beta.1
0.0.2-beta.2
0.0.2-rc.1
The script automatically prefixes the Git tag with v.
Notes
- Run
prepareonly from themainbranch. - Run
tagonly after the version bump pull request has been merged. - Do not create release tags manually before merging the version bump.
- Both commands require a clean working tree.
- The version in
Directory.Build.propsmust exactly match the version passed to thetagcommand.