File tree 1 file changed +13
-7
lines changed
1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change 14
14
runs-on : ubuntu-20.04
15
15
outputs :
16
16
versionType : ${{ steps.version.outputs.versionType }}
17
+ fullVersion : ${{ steps.version.outputs.fullVersion }}
17
18
steps :
18
19
- uses : actions/checkout@v2
19
20
- name : setup java
29
30
- name : run checks
30
31
id : checks
31
32
run : ./gradlew check
32
- - name : tag
33
- if : steps.version.outputs.versionType == 'RELEASE' || steps.version.outputs.versionType == 'MILESTONE'
34
- run : |
35
- git config --local user.name 'reactorbot'
36
- git config --local user.email '32325210+reactorbot@users.noreply.github.com'
37
- git tag -m "Release version ${{ steps.version.outputs.fullVersion }}" v${{ steps.version.outputs.fullVersion }} ${{ github.sha }}
38
- git push --tags
39
33
40
34
# deploy the snapshot artifacts to Artifactory
41
35
deploySnapshot :
76
70
ORG_GRADLE_PROJECT_signingPassword : ${{secrets.SIGNING_PASSPHRASE}}
77
71
run : |
78
72
./gradlew assemble sign artifactoryPublish -Partifactory_publish_contextUrl=https://repo.spring.io -Partifactory_publish_repoKey=libs-milestone-local
73
+ - name : tag
74
+ run : |
75
+ git config --local user.name 'reactorbot'
76
+ git config --local user.email '32325210+reactorbot@users.noreply.github.com'
77
+ git tag -m "Release milestone ${{ needs.prepare.outputs.fullVersion }}" v${{ needs.prepare.outputs.fullVersion }} ${{ github.sha }}
78
+ git push --tags
79
79
80
80
# sign the release artifacts and deploy them to Artifactory
81
81
deployRelease :
99
99
ORG_GRADLE_PROJECT_sonatypePassword : ${{secrets.SONATYPE_PASSWORD}}
100
100
run : |
101
101
./gradlew assemble sign artifactoryPublish -Partifactory_publish_contextUrl=https://repo.spring.io -Partifactory_publish_repoKey=libs-release-local publishMavenJavaPublicationToSonatypeRepository
102
+ - name : tag
103
+ run : |
104
+ git config --local user.name 'reactorbot'
105
+ git config --local user.email '32325210+reactorbot@users.noreply.github.com'
106
+ git tag -m "Release version ${{ needs.prepare.outputs.fullVersion }}" v${{ needs.prepare.outputs.fullVersion }} ${{ github.sha }}
107
+ git push --tags
102
108
103
109
# For Gradle configuration of signing, see https://docs.gradle.org/current/userguide/signing_plugin.html#sec:in-memory-keys
104
110
# publishMavenJavaPublicationToSonatypeRepository only sends to a staging repository
You can’t perform that action at this time.
0 commit comments