Skip to content

Commit

Permalink
Merge pull request #83 from overpas/#74/fix-ci-release
Browse files Browse the repository at this point in the history
Fix CI release pipeline
  • Loading branch information
overpas authored Jul 15, 2023
2 parents 4282676 + 0f4ca2a commit 85dbb1e
Showing 1 changed file with 23 additions and 24 deletions.
47 changes: 23 additions & 24 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,26 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v3
# - name: Set up JDK 11
# uses: actions/setup-java@v3
# with:
# distribution: adopt
# java-version: 11
#
# # Builds the release artifacts of the library
# - name: Release build
# run: ./gradlew :treemap-chart:assemble :treemap-compose-android:assembleRelease
#
# # Generates other artifacts
# - name: Source jar
# run: ./gradlew androidSourcesJar javadocJar
#
# # Runs upload, and then closes & releases the repository
# - name: Publish to MavenCentral
# run: ./gradlew publishReleasePublicationToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository
# env:
# OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
# OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
# SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
# SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
# SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
# SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 17

# Builds the release artifacts of the library
- name: Release build
run: ./gradlew build

# Generates other artifacts
- name: Source jar
run: ./gradlew androidSourcesJar javadocJar

# Runs upload, and then closes & releases the repository
- name: Publish to MavenCentral
run: ./gradlew publishAllPublicationsToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}

0 comments on commit 85dbb1e

Please sign in to comment.