|
4 | 4 | Extract metadata from unified diffs |
5 | 5 |
|
6 | 6 | ## Releasing |
7 | | -Be sure to update the version in `build.gradle` to a version not ending with `-SNAPSHOT`. Then make a subsequent commit |
8 | | -with a snapshot for the next version. This will prevent old versions from being uploaded and staged in sonatype. |
9 | | - |
10 | | -After artifacts are uploaded you'll need to manually release it here: |
11 | | - |
12 | | -https://s01.oss.sonatype.org/#stagingRepositories |
13 | | - |
14 | | -The steps to release are: |
15 | | -1. Delete any old artifacts that are staged. The CI build will upload all artifacts here that aren't snapshots |
16 | | - (appended with `-SNAPSHOT`) so some may be in here. The release will fail if there are old artifacts because it |
17 | | - will refuse to overwrite an existing version. |
18 | | - 1. Select the staging repository |
19 | | - 2. Select the "Content" tab in the lower panel |
20 | | - 3. Traverse the directory structure until you get to where versions are listed. Delete any versions you do not wish |
21 | | - to release |
22 | | -2. With the repository selected click on "Close" above the main panel. The version will run through a set of |
23 | | - validations that could take up to 5-15 minutes. You can follow these by viewing the "Activity" tab in the lower |
24 | | - panel. Once successful, you can then click the "Release" button above the upper panel. Note that the release can |
25 | | - still fail, for instance, if there are existing artifacts that it will refuse to overwrite. |
26 | | - |
27 | | -The version can take a bit of time to show up in the main repository found here: |
28 | | - |
29 | | -https://repo1.maven.org/maven2/io/github/scottg489/unified-diff-parser/ |
30 | | - |
31 | | -It can also be found here I believe immediately: |
32 | | - |
33 | | -https://s01.oss.sonatype.org/content/repositories/staging/io/github/scottg489/unified-diff-parser/ |
| 7 | +Releases are automatically deployed and publicly available. To release: |
| 8 | +1. Bump `version` in `build.gradle` to a non-snapshot version |
| 9 | +2. Commit and push |
| 10 | +3. Bump version to next patch and append `-SNAPSHOT` |
| 11 | +4. Commit and push |
| 12 | + |
| 13 | +This avoids accidentally forgetting to add `-SNAPSHOT` before subsequent pushes. The build would otherwise fail because |
| 14 | +it would refuse to overwrite the old version. |
0 commit comments