Skip to content

Commit

Permalink
Partially revert #2828, still use 'run' in publish.yml
Browse files Browse the repository at this point in the history
See #2828.
  • Loading branch information
simonbasle committed Nov 4, 2021
1 parent 8177341 commit f7d38e0
Showing 1 changed file with 7 additions and 27 deletions.
34 changes: 7 additions & 27 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@ jobs:
java-version: 8
- name: interpret version
id: version
uses: gradle/gradle-build-action@v2
#we only run the qualifyVersionGha task so that no other console printing can hijack this step's output
#output: versionType, fullVersion
#fails if versionType is BAD, which interrupts the workflow
with:
arguments: qualifyVersionGha
run: ./gradlew qualifyVersionGha
- name: run checks
id: checks
uses: gradle/gradle-build-action@v2
Expand All @@ -51,13 +49,8 @@ jobs:
env:
ORG_GRADLE_PROJECT_artifactory_publish_username: ${{secrets.ARTIFACTORY_SNAPSHOT_USERNAME}}
ORG_GRADLE_PROJECT_artifactory_publish_password: ${{secrets.ARTIFACTORY_PASSWORD}}
uses: gradle/gradle-build-action@v2
with:
arguments: |
assemble
artifactoryPublish
-Partifactory_publish_contextUrl=https://repo.spring.io
-Partifactory_publish_repoKey=libs-snapshot-local
run: |
./gradlew assemble artifactoryPublish -Partifactory_publish_contextUrl=https://repo.spring.io -Partifactory_publish_repoKey=libs-snapshot-local
#sign the milestone artifacts and deploy them to Artifactory
deployMilestone:
Expand All @@ -77,14 +70,8 @@ jobs:
ORG_GRADLE_PROJECT_artifactory_publish_password: ${{secrets.ARTIFACTORY_PASSWORD}}
ORG_GRADLE_PROJECT_signingKey: ${{secrets.SIGNING_KEY}}
ORG_GRADLE_PROJECT_signingPassword: ${{secrets.SIGNING_PASSPHRASE}}
uses: gradle/gradle-build-action@v2
with:
arguments: |
assemble
sign
artifactoryPublish
-Partifactory_publish_contextUrl=https://repo.spring.io
-Partifactory_publish_repoKey=libs-milestone-local
run: |
./gradlew assemble sign artifactoryPublish -Partifactory_publish_contextUrl=https://repo.spring.io -Partifactory_publish_repoKey=libs-milestone-local
- name: tag
run: |
git config --local user.name 'reactorbot'
Expand Down Expand Up @@ -112,15 +99,8 @@ jobs:
ORG_GRADLE_PROJECT_signingPassword: ${{secrets.SIGNING_PASSPHRASE}}
ORG_GRADLE_PROJECT_sonatypeUsername: ${{secrets.SONATYPE_USERNAME}}
ORG_GRADLE_PROJECT_sonatypePassword: ${{secrets.SONATYPE_PASSWORD}}
uses: gradle/gradle-build-action@v2
with:
arguments: |
assemble
sign
artifactoryPublish
-Partifactory_publish_contextUrl=https://repo.spring.io
-Partifactory_publish_repoKey=libs-release-local
publishMavenJavaPublicationToSonatypeRepository
run: |
./gradlew assemble sign artifactoryPublish -Partifactory_publish_contextUrl=https://repo.spring.io -Partifactory_publish_repoKey=libs-release-local publishMavenJavaPublicationToSonatypeRepository
- name: tag
run: |
git config --local user.name 'reactorbot'
Expand Down

0 comments on commit f7d38e0

Please sign in to comment.