Skip to content

Commit c7e66db

Browse files
committedMay 11, 2021
Merge 3761f8d into 1.0.7
2 parents afda6e0 + 9f86426 commit c7e66db

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed
 

‎.github/workflows/publish.yml

+13-7
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
runs-on: ubuntu-20.04
1515
outputs:
1616
versionType: ${{ steps.version.outputs.versionType }}
17+
fullVersion: ${{ steps.version.outputs.fullVersion }}
1718
steps:
1819
- uses: actions/checkout@v2
1920
- name: setup java
@@ -29,13 +30,6 @@ jobs:
2930
- name: run checks
3031
id: checks
3132
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
3933

4034
#deploy the snapshot artifacts to Artifactory
4135
deploySnapshot:
@@ -76,6 +70,12 @@ jobs:
7670
ORG_GRADLE_PROJECT_signingPassword: ${{secrets.SIGNING_PASSPHRASE}}
7771
run: |
7872
./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
7979
8080
#sign the release artifacts and deploy them to Artifactory
8181
deployRelease:
@@ -99,6 +99,12 @@ jobs:
9999
ORG_GRADLE_PROJECT_sonatypePassword: ${{secrets.SONATYPE_PASSWORD}}
100100
run: |
101101
./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
102108
103109
# For Gradle configuration of signing, see https://docs.gradle.org/current/userguide/signing_plugin.html#sec:in-memory-keys
104110
# publishMavenJavaPublicationToSonatypeRepository only sends to a staging repository

0 commit comments

Comments
 (0)
Please sign in to comment.