Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
abnegate authored Feb 21, 2024
1 parent 956492a commit e9887c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 11
java-version: 17
# Base64 decodes and pipes the GPG key content into the secret file
- name: Prepare environment
env:
Expand All @@ -37,7 +37,7 @@ jobs:
# Runs upload, and then closes & releases the repository
- name: Publish Release Version to MavenCentral
run: |
if ${{ endswith(github.event.release.tag_name, '-SNAPSHOT') }}; then
if ${{ contains(github.event.release.tag_name, '-rc') }}; then
echo "Publising Snapshot Version ${{ github.event.release.tag_name}} to Snapshot repository"
./gradlew publishToSonatype
else
Expand Down

0 comments on commit e9887c8

Please sign in to comment.