Skip to content

Commit e9887c8

Browse files
authored
Update publish.yml
1 parent 956492a commit e9887c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
steps:
1313
- name: Check out code
1414
uses: actions/checkout@v2
15-
- name: Set up JDK 11
15+
- name: Set up JDK 17
1616
uses: actions/setup-java@v1
1717
with:
18-
java-version: 11
18+
java-version: 17
1919
# Base64 decodes and pipes the GPG key content into the secret file
2020
- name: Prepare environment
2121
env:
@@ -37,7 +37,7 @@ jobs:
3737
# Runs upload, and then closes & releases the repository
3838
- name: Publish Release Version to MavenCentral
3939
run: |
40-
if ${{ endswith(github.event.release.tag_name, '-SNAPSHOT') }}; then
40+
if ${{ contains(github.event.release.tag_name, '-rc') }}; then
4141
echo "Publising Snapshot Version ${{ github.event.release.tag_name}} to Snapshot repository"
4242
./gradlew publishToSonatype
4343
else

0 commit comments

Comments
 (0)