File tree 3 files changed +16
-6
lines changed
3 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 1
- # GH_TOKEN
2
1
# NEXUS_USER
3
2
# NEXUS_PASS64 (base64 NOTE: `base64` and `openssl base64` failed, had to use Java
4
3
# byte[] data = "{{password}}".getBytes(StandardCharsets.UTF_8);
29
28
build :
30
29
runs-on : ubuntu-latest
31
30
name : deploy
31
+ permissions :
32
+ contents : write
32
33
env :
33
- gh_token : ${{ secrets.GH_TOKEN }}
34
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34
35
ORG_GRADLE_PROJECT_nexus_user : ${{ secrets.NEXUS_USER }}
35
36
ORG_GRADLE_PROJECT_nexus_pass64 : ${{ secrets.NEXUS_PASS64 }}
36
37
ORG_GRADLE_PROJECT_gpg_passphrase : ${{ secrets.GPG_PASSPHRASE }}
64
65
if : " ${{ github.event.inputs.to_publish == 'lib' }}"
65
66
run : |
66
67
./gradlew :changelogPush -Prelease=true --stacktrace --warning-mode all --no-configuration-cache
68
+ - run : git checkout main
69
+ - run : git merge release --ff-only
70
+ - run : git push origin main
Original file line number Diff line number Diff line change 1
1
String kind
2
+ String releaseTitle
2
3
if (project. name == ' plugin-gradle' ) {
3
4
kind = ' gradle'
5
+ releaseTitle = ' Gradle Plugin'
4
6
} else if (project. name == ' plugin-maven' ) {
5
7
kind = ' maven'
8
+ releaseTitle = ' Maven Plugin'
6
9
} else {
7
10
assert project == rootProject
8
11
kind = ' lib'
12
+ releaseTitle = ' Lib'
9
13
}
10
14
11
15
// the root project and plugins have their own changelogs
@@ -18,13 +22,15 @@ spotlessChangelog {
18
22
branch ' release'
19
23
tagPrefix " ${ kind} /"
20
24
commitMessage " Published ${ kind} /{{version}}" // {{version}} will be replaced
25
+ tagMessage " ${ kind} v{{version}}\n\n {{changes}}"
26
+ runAfterPush " gh release create ${ kind} /{{version}} --title '${ releaseTitle} v{{version}}' --notes-from-tag"
21
27
22
28
if (kind == ' gradle' ) {
23
- forceNextVersion ' 7.0.0.BETA1 '
29
+ forceNextVersion ' 7.0.0.BETA2 '
24
30
} else if (kind == ' maven' ) {
25
- forceNextVersion ' 2.44.0.BETA1 '
31
+ forceNextVersion ' 2.44.0.BETA2 '
26
32
} else {
27
- forceNextVersion ' 3.0.0.BETA1 '
33
+ forceNextVersion ' 3.0.0.BETA2 '
28
34
}
29
35
}
30
36
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ plugins {
14
14
// https://github.com/spotbugs/spotbugs-gradle-plugin/releases
15
15
id ' com.github.spotbugs' version ' 6.0.20' apply false
16
16
// https://github.com/diffplug/spotless-changelog/blob/main/CHANGELOG.md
17
- id ' com.diffplug.spotless-changelog' version ' 3.0 .2' apply false
17
+ id ' com.diffplug.spotless-changelog' version ' 3.1 .2' apply false
18
18
// https://github.com/radarsh/gradle-test-logger-plugin/blob/develop/CHANGELOG.md
19
19
id ' com.adarshr.test-logger' version ' 4.0.0' apply false
20
20
// https://github.com/davidburstrom/version-compatibility-gradle-plugin/tags
You can’t perform that action at this time.
0 commit comments