If you ever accidentally tag the wrong branch with a release, you can move the release back to the draft stage on GitHub with the following commands.
- Delete the tag locally
git tag -d v1.0
- Delete the v1.0 tag on GitHub
git push origin :v1.0
You can then select the correct branch on GitHub and publish the release once more.