Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 15 additions & 11 deletions .github/workflows/roomkit-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,26 +56,30 @@ jobs:
run: chmod +x gradlew

- name: Deploy to Maven Central live.100ms
run: ./gradlew clean publish -PhmsRoomKitGroup="live.100ms" -PHMS_ROOM_KIT_VERSION="${{github.ref_name}}" -PossrhUsername="${{ secrets.ANDROID_SONATYPE_USERNAME}}" -PossrhPassword="${{ secrets.ANDROID_SONATYPE_PASSWORD}}" -Psigning.keyId="D00FAF9F" -Psigning.password="${{ secrets.ROOM_KIT_SECRET_KEY_PASSPHRASE }}" -Psigning.secretKeyRingFile="../secrets/secring.gpg" -PTOKEN_ENDPOINT="\"​\""
run: ./gradlew :room-kit:publishToMavenLocal -PhmsRoomKitGroup="live.100ms" -PHMS_ROOM_KIT_VERSION="${{github.ref_name}}" -PossrhUsername="${{ secrets.ANDROID_SONATYPE_USERNAME}}" -PossrhPassword="${{ secrets.ANDROID_SONATYPE_PASSWORD}}" -Psigning.keyId="D00FAF9F" -Psigning.password="${{ secrets.ROOM_KIT_SECRET_KEY_PASSPHRASE }}" -Psigning.secretKeyRingFile="../secrets/secring.gpg" -PTOKEN_ENDPOINT="\"​\""

- name: Create deployment bundle
run: |
VERSION="${{ github.ref_name }}"
ARTIFACT_ID="room-kit"
GROUP_PATH="live/100ms/$ARTIFACT_ID/$VERSION"
LOCAL_REPO_PATH="$HOME/.m2/repository/live/100ms/$ARTIFACT_ID/$VERSION"

mkdir -p bundle/$GROUP_PATH

# Copy files from local Maven repository
cp $LOCAL_REPO_PATH/${ARTIFACT_ID}-${VERSION}.aar bundle/$GROUP_PATH/
cp $LOCAL_REPO_PATH/${ARTIFACT_ID}-${VERSION}.aar.asc bundle/$GROUP_PATH/
cp $LOCAL_REPO_PATH/${ARTIFACT_ID}-${VERSION}.pom bundle/$GROUP_PATH/
cp $LOCAL_REPO_PATH/${ARTIFACT_ID}-${VERSION}.pom.asc bundle/$GROUP_PATH/
cp $LOCAL_REPO_PATH/${ARTIFACT_ID}-${VERSION}-sources.jar bundle/$GROUP_PATH/ || true
cp $LOCAL_REPO_PATH/${ARTIFACT_ID}-${VERSION}-sources.jar.asc bundle/$GROUP_PATH/ || true
cp $LOCAL_REPO_PATH/${ARTIFACT_ID}-${VERSION}-javadoc.jar bundle/$GROUP_PATH/ || true
cp $LOCAL_REPO_PATH/${ARTIFACT_ID}-${VERSION}-javadoc.jar.asc bundle/$GROUP_PATH/ || true
# Now copy from local Maven repository where everything is properly structured
LOCAL_REPO="$HOME/.m2/repository/live/100ms/$ARTIFACT_ID/$VERSION"

# Copy all artifacts and their signatures
cp $LOCAL_REPO/${ARTIFACT_ID}-${VERSION}.aar bundle/$GROUP_PATH/
cp $LOCAL_REPO/${ARTIFACT_ID}-${VERSION}.aar.asc bundle/$GROUP_PATH/
cp $LOCAL_REPO/${ARTIFACT_ID}-${VERSION}.pom bundle/$GROUP_PATH/
cp $LOCAL_REPO/${ARTIFACT_ID}-${VERSION}.pom.asc bundle/$GROUP_PATH/

# Copy sources and javadoc if they exist
[ -f "$LOCAL_REPO/${ARTIFACT_ID}-${VERSION}-sources.jar" ] && cp $LOCAL_REPO/${ARTIFACT_ID}-${VERSION}-sources.jar bundle/$GROUP_PATH/
[ -f "$LOCAL_REPO/${ARTIFACT_ID}-${VERSION}-sources.jar.asc" ] && cp $LOCAL_REPO/${ARTIFACT_ID}-${VERSION}-sources.jar.asc bundle/$GROUP_PATH/
[ -f "$LOCAL_REPO/${ARTIFACT_ID}-${VERSION}-javadoc.jar" ] && cp $LOCAL_REPO/${ARTIFACT_ID}-${VERSION}-javadoc.jar bundle/$GROUP_PATH/
[ -f "$LOCAL_REPO/${ARTIFACT_ID}-${VERSION}-javadoc.jar.asc" ] && cp $LOCAL_REPO/${ARTIFACT_ID}-${VERSION}-javadoc.jar.asc bundle/$GROUP_PATH/

# Generate checksums
for file in bundle/$GROUP_PATH/*; do
Expand Down
13 changes: 7 additions & 6 deletions room-kit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,14 @@ afterEvaluate {
// Creates a Maven publication called "release".
release(MavenPublication) {
from components.release

// Only sign the artefacts if this is a maven central build.
// This would only halt jitpack builds and/or make our signing keys public.
if(rootProject.properties["ossrhUsername"]) {
artifact javadocJar
}

pom {
// Only sign the artefacts if this is a maven central build.
// This would only halt jitpack builds and/or make our signing keys public.
if(rootProject.properties["ossrhUsername"]) {
artifact javadocJar
}
name = "100ms.live Android Room Kit"
description = "Room Kit that simplifies setting up videoconferencing in your own app. See more at https://www.100ms.live/docs/android/v2/guides/quickstart"
url = "100ms.live"
Expand Down Expand Up @@ -181,7 +183,6 @@ afterEvaluate {
}

if(rootProject.properties["ossrhUsername"]) {
artifact javadocJar
signing {
sign publishing.publications
}
Expand Down