Skip to content

Commit

Permalink
Trying to fix releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
lclc98 committed Dec 3, 2021
1 parent 0d72608 commit 59d21ec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:

- name: Release Build
if: startsWith(github.ref, 'refs/tags/v')
run: ./gradlew sign publishToSonatype closeAndReleaseStagingRepository
run: ./gradlew publishToSonatype closeAndReleaseStagingRepository
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
Expand Down
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,13 @@ gradle.taskGraph.whenReady { taskGraph ->
}

signing {
required { !isSnapshot() }
useGpgCmd()
sign configurations.archives
}

tasks.withType(Sign) {
onlyIf { !isSnapshot() }
tasks.withType(io.github.gradlenexus.publishplugin.InitializeNexusStagingRepository).configureEach {
shouldRunAfter(tasks.withType(Sign))
}

nexusPublishing {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
project_version=1.2.3
project_version=1.2.4
group=com.diluv.schoomp
archivesBaseName=Schoomp
vendor=Diluv

0 comments on commit 59d21ec

Please sign in to comment.