Skip to content

Commit

Permalink
ci: deploy nd close repo in same invocation
Browse files Browse the repository at this point in the history
Signed-off-by: Mariell Hoversholm <[email protected]>
  • Loading branch information
Mariell Hoversholm committed Dec 3, 2021
1 parent 22d8d5f commit 333c8bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-sonatype.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
echo "::set-output name=snapshot::true"
fi
- name: Deploy to OSSRH
if: ${{ github.ref_type == 'tag' || steps.snapshot-check.outputs.snapshot == 'true' }}
if: ${{ github.ref_type != 'tag' || steps.snapshot-check.outputs.snapshot == 'true' }}
run: ./gradlew -PforceSign=true publish --no-daemon
env:
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }}
Expand All @@ -48,7 +48,7 @@ jobs:
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
- name: Deploy to Central
if: ${{ github.ref_type == 'tag' && steps.snapshot-check.outputs.snapshot == 'false' }}
run: ./gradlew -PforceSign=true closeAndReleaseSonatypeStagingRepository --no-daemon
run: ./gradlew -PforceSign=true publish closeAndReleaseSonatypeStagingRepository --no-daemon
env:
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }}
Expand Down

0 comments on commit 333c8bc

Please sign in to comment.