|
| 1 | +# Developer Notes for Releasing |
| 2 | + |
| 3 | +## Creating a release |
| 4 | + |
| 5 | +To create a new release, follow these steps (everything automated): |
| 6 | + |
| 7 | +1. Navigate to https://github.com/diffplug/spotless-cli/actions/workflows/publish.yml |
| 8 | +2. Click on "Run workflow", use main branch, by default don't provide a version number |
| 9 | + |
| 10 | +## Re-creating a release |
| 11 | + |
| 12 | +If for some reason, we need to re-create a release, follow these steps (manual labor involved): |
| 13 | + |
| 14 | +### In spotless-cli repo: |
| 15 | + |
| 16 | +https://github.com/diffplug/spotless-cli |
| 17 | + |
| 18 | +1. Navigate to "Releases" (right column) |
| 19 | +2. Make sure you are on the right release version (the one you need to recreate) |
| 20 | +3. Click on the trashcan in the upper right corner of the release |
| 21 | +4. Confirm |
| 22 | +5. Switch to "Tags" in the tab-bar at the top |
| 23 | +6. Click on the `...` at the very right of the version to recreate -> Delete tag |
| 24 | +7. Confirm |
| 25 | + |
| 26 | +### In homebrew-tap repo: |
| 27 | + |
| 28 | +https://github.com/diffplug/homebrew-tap |
| 29 | + |
| 30 | +1. Navigate to "Releases" (right column) |
| 31 | +2. Switch to "Tags" in the tab-bar at the top |
| 32 | +3. Click on the `...` at the very right of the version to recreate -> Delete tag |
| 33 | +4. Confirm |
| 34 | + |
| 35 | +### In chocolatey-bucket repo: |
| 36 | + |
| 37 | +https://github.com/diffplug/chocolatey-bucket |
| 38 | + |
| 39 | +1. Navigate to "Releases" (right column) |
| 40 | +2. Switch to "Tags" in the tab-bar at the top |
| 41 | +3. Click on the `...` at the very right of the version to recreate -> Delete tag |
| 42 | +4. Confirm |
| 43 | + |
| 44 | +### In local clone of spotless-cli repo: |
| 45 | + |
| 46 | +1. Make sure you are on main branch, pull the HEAD |
| 47 | +2. Open `CHANGELOG.md` and merge the version to recreate with the Unreleased version |
| 48 | + This typically means deleting the release header and empty lines, but could mean to cut&paste sections together |
| 49 | +3. Run `gradlew changelogCheck -i` to make sure the changelog is valid |
| 50 | +4. If you have the deleted tag also locally, delete it with `git tag -d <tagname>` e.g. `git tag -d v1.0.0` |
| 51 | +5. commit the changes with `git commit -m "changelog: recreate v<your-version>"` e.g. `git commit -m "changelog: recreate v1.0.0"` |
| 52 | +6. push the changes with `git push origin main` |
0 commit comments