Files
sharpemu/scripts/RELEASE-USE.md
T
Berk a44ce34a0a Add release process documentation to RELEASE-USE.md
Document the release process for SharpEmu, including preparation and publishing steps.
2026-07-17 05:00:22 +03:00

1.9 KiB

Release Script

SharpEmu releases are prepared and published using scripts/release.py.

The release process consists of two steps:

  1. Prepare the version bump through a pull request.
  2. 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 main branch.
  • Create a new branch named release/0.0.2-beta.2.
  • Update SharpEmuVersion in Directory.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.props contains 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 prepare only from the main branch.
  • Run tag only 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.props must exactly match the version passed to the tag command.