Commit c5033b4
authored
Publish releases to the Code Genome Project alongside Maven Central (#1)
* Publish releases to the Code Genome Project instead of Maven Central
Bump `org.openrewrite.build.recipe-library` from 1.8.1 to `latest.release`,
which is what applies `org.openrewrite.build.publish-cgp`. That plugin needs
Groovy 4, so the Gradle wrapper moves from 8.14 to 9.7.0 to match the rest of
the org.
Disable the Sonatype repository and staging tasks so `publish` targets only
the `cgp` repository, while the shared publish workflow can keep invoking
`closeAndReleaseSonatypeStagingRepository`.
Forward the cgp_* publishing and resolution secrets in both workflows, and
rename ossrh_username/ossrh_token to sonatype_username/sonatype_token, which
is what the shared gh-automation workflows now declare. Also point ci.yml at
`master`, the repository's actual default branch, so CI runs at all.
* Keep publishing to Maven Central alongside the Code Genome Project
* Publish snapshots from master
ci-gradle.yml gates its snapshot step on `refs/heads/main`, so this repository
never published snapshots. Add a job that runs the same publish-snapshots
action on pushes to master, and opt out of the shared step so the two cannot
both fire if that condition is later broadened.
* Revert to the shared snapshot publishing now that the branch is main
The default branch was renamed from master to main, so ci-gradle.yml's own
snapshot step matches again and the repository-local job it needed is gone.1 parent b1a0e99 commit c5033b4
7 files changed
Lines changed: 65 additions & 62 deletions
File tree
- .github/workflows
- gradle/wrapper
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 26 | + | |
| 27 | + | |
30 | 28 | | |
31 | 29 | | |
32 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
6 | 9 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments