Skip to content

Commit

Permalink
fix(workflows): missing staging repo
Browse files Browse the repository at this point in the history
  • Loading branch information
jhdcruz committed Jul 31, 2023
1 parent d00a4d9 commit 2e71137
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,17 @@ jobs:
- name: Gradle build
run: ./gradlew ${{ steps.module.outputs.module_name }}:clean ${{ steps.module.outputs.module_name }}:build --scan

- name: Publish ${{ steps.module.outputs.module_name }} on GPR
- name: Publish module on GPR
run: ./gradlew ${{ steps.module.outputs.module_name }}:publishAllPublicationsToGitHubPackagesRepository

- name: Publish ${{ steps.module.outputs.module_name }} on Sonatype
run: ./gradlew ${{ steps.module.outputs.module_name }}:publishToSonatype closeSonatypeStagingRepository
- name: Publish module on Sonatype
run: ./gradlew ${{ steps.module.outputs.module_name }}:publishToSonatype
env:
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
SONATYPE_PASS: ${{ secrets.SONATYPE_PASS }}

- name: Publish module on Sonatype (Phase 2)
run: ./gradlew findSonatypeStagingRepository closeSonatypeStagingRepository
env:
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
SONATYPE_PASS: ${{ secrets.SONATYPE_PASS }}
Expand Down Expand Up @@ -88,7 +94,7 @@ jobs:
${{ steps.module.outputs.module_name }}/build/libs/*
docs:
needs: [publish]
needs: [ publish ]
uses: ./.github/workflows/docs.yml
with:
project: ${{ needs.publish.module.outputs.module_name }}
Expand Down
7 changes: 4 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ dependencies {
dokkaPlugin(libs.dokka.versioning)
}

version = rootProject.property("VERSION")
?: throw GradleException("Project version property is missing")
group = rootProject.property("GROUP")
?: throw GradleException("Project group property is missing")

Expand Down Expand Up @@ -80,7 +78,10 @@ subprojects {
// get current year
"© ${Calendar.getInstance().get(Calendar.YEAR)}" +
" Kipher Author & Contributors | " +
"Licensed under <a href='https://github.com/jhdcruz/kipher/blob/main/LICENSE.txt'>The Apache 2.0 License</a>"
"Licensed under" +
"<a href='https://github.com/jhdcruz/kipher/blob/main/LICENSE.txt'>" +
"The Apache 2.0 License" +
"</a>"
}

dokkaSourceSets {
Expand Down

0 comments on commit 2e71137

Please sign in to comment.