Skip to content

Commit

Permalink
[actions] we have to "publish" for Maven artifacts, not just to local.
Browse files Browse the repository at this point in the history
  • Loading branch information
atsushieno committed Apr 12, 2024
1 parent 743920c commit 23de654
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,21 +69,30 @@ jobs:
# Workaround rtmidi-javacpp reference resolution failure issue
- name: build and publishToMavenLocal rtmidi-javacpp (just for local platform is fine)
run: cd external/rtmidi-javacpp && ./gradlew build publishToMavenLocal; cd ../..
# only on macos-13
- name: macos-13 lightweight build with Gradle () for libs

# only for NON-releases on macos-13
- name: macos-13 lightweight build with Gradle for libs
if: ${{ contains(matrix.os, 'macos-13') }}
run: ./gradlew --warning-mode all publishToMavenLocal
# only for releases on macos-13
- name: macos-13 lightweight build with Gradle for libs
if: ${{ contains(matrix.os, 'macos-13') }}
run: ./gradlew --warning-mode all publish
env:
OSSRH_USERNAME: atsushieno
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
OSSRH_STAGING_REPOSITORY_ID: ${{ needs.create_staging_repository.outputs.repository_id }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_SECRET_KEY_RING_FILE: ${{ format('{0}/{1}', github.workspace, secrets.SIGNING_SECRET_KEY_RING_FILE) }}
# only on macos-14
- name: macos-14 lightweight build with Gradle () for libs and apps
# only for NON-releases on macos-14
- name: macos-14 lightweight build with Gradle for libs and apps
if: ${{ contains(matrix.os, 'macos-14') }}
run: ./gradlew --warning-mode all publishToMavenLocal iosArm64Binaries
# only for releases on macos-14
- name: macos-14 lightweight build with Gradle for libs and apps
if: ${{ contains(matrix.os, 'macos-14') }}
run: ./gradlew --warning-mode all publishToMavenLocal iosArm64Binaries packageDmg
run: ./gradlew --warning-mode all publish iosArm64Binaries packageDmg
env:
OSSRH_USERNAME: atsushieno
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
Expand All @@ -92,11 +101,11 @@ jobs:
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_SECRET_KEY_RING_FILE: ${{ format('{0}/{1}', github.workspace, secrets.SIGNING_SECRET_KEY_RING_FILE) }}
# only for NON-releases on Linux
- name: linux build with Gradle ()
- name: linux build with Gradle
if: ${{ !startsWith(github.ref, 'refs/tags/') && contains(matrix.os, 'ubuntu-22.04') }}
run: ./gradlew --warning-mode all build
# only for releases on Linux
- name: publish with Gradle
- name: linux publish with Gradle
if: ${{ startsWith(github.ref, 'refs/tags/') && contains(matrix.os, 'ubuntu-22.04') }}
run: ./gradlew --warning-mode all dokkaHtml publish
env:
Expand Down

0 comments on commit 23de654

Please sign in to comment.