Skip to content

Commit

Permalink
Fix maven publishing (#47)
Browse files Browse the repository at this point in the history
* fix secrets, enable GitHub Packages publishing

* use ubuntu-latest (it's faster)
  • Loading branch information
aSemy authored Dec 21, 2023
1 parent 538e6a4 commit 9e3a56c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/run_gradle_task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ jobs:
gradle-home-cache-cleanup: true
arguments: ${{ inputs.gradle-task }}
env:
"ORG_GRADLE_PROJECT_signing.keyId": ${{ secrets.MAVEN_SONATYPE_SIGNING_KEY_ID }}
"ORG_GRADLE_PROJECT_signing.key": ${{ secrets.MAVEN_SONATYPE_SIGNING_KEY }}
"ORG_GRADLE_PROJECT_signing.password": ${{ secrets.MAVEN_SONATYPE_SIGNING_PASSWORD }}
ORG_GRADLE_PROJECT_sonatypeRepositoryUsername: ${{ secrets.MAVEN_SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_sonatypeRepositoryPassword: ${{ secrets.MAVEN_SONATYPE_PASSWORD }}
"ORG_GRADLE_PROJECT_signing.keyId": ${{ secrets.SONATYPE_SIGNING_KEY_ID }}
"ORG_GRADLE_PROJECT_signing.key": ${{ secrets.SONATYPE_SIGNING_KEY }}
"ORG_GRADLE_PROJECT_signing.password": ${{ secrets.SONATYPE_SIGNING_PASSWORD }}
ORG_GRADLE_PROJECT_sonatypeRepositoryUsername: ${{ secrets.SONATYPE_REPO_USERNAME }}
ORG_GRADLE_PROJECT_sonatypeRepositoryPassword: ${{ secrets.SONATYPE_REPO_PASSWORD }}

- name: Upload build reports
if: failure()
Expand Down
23 changes: 21 additions & 2 deletions .github/workflows/run_publish_maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,26 @@ jobs:
uses: ./.github/workflows/run_gradle_task.yml
secrets: inherit
with:
runs-on: macos-latest # only macOS supports building all Kotlin targets
runs-on: ubuntu-latest
gradle-task: >-
publishAllPublicationsToSonatypeReleaseRepository --stacktrace --no-configuration-cache --no-parallel
publishAllPublicationsToSonatypeRepository
--stacktrace
--no-configuration-cache
--no-parallel
checkout-ref: ${{ inputs.checkout-ref || github.event.repository.default_branch }}


github-packages-release:
permissions:
contents: read
packages: write
checks: write
uses: ./.github/workflows/run_gradle_task.yml
with:
runs-on: ubuntu-latest
gradle-task: >-
publishAllPublicationsToGitHubPackagesRepository
--stacktrace
--no-configuration-cache
--no-parallel
checkout-ref: ${{ inputs.checkout-ref || github.event.repository.default_branch }}

0 comments on commit 9e3a56c

Please sign in to comment.