Skip to content

Commit

Permalink
Attempt to update release
Browse files Browse the repository at this point in the history
  • Loading branch information
Mc231 committed Oct 24, 2024
1 parent 87ca870 commit 89a605d
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,23 @@ jobs:
- name: Build with Gradle
run: ./gradlew livekit-android-sdk:assembleRelease livekit-android-camerax:assembleRelease livekit-android-test:testRelease

- name: Create gpg key and import into gradle properties
run: |
echo $GPG_KEY_ARMOR | base64 --decode > ./release.asc
gpg --quiet --output $GITHUB_WORKSPACE/release.gpg --dearmor ./release.asc
sed -i -e "s,nexusUsername=,nexusUsername=$NEXUS_USERNAME,g" gradle.properties
sed -i -e "s,nexusPassword=,nexusPassword=$NEXUS_PASSWORD,g" gradle.properties
sed -i -e "s,signing.keyId=,signing.keyId=$GPG_KEY_ID,g" gradle.properties
sed -i -e "s,signing.password=,signing.password=$GPG_PASSWORD,g" gradle.properties
sed -i -e "s,signing.secretKeyRingFile=,signing.secretKeyRingFile=$GITHUB_WORKSPACE/release.gpg,g" gradle.properties
sed -i -e "s,STAGING_PROFILE_ID=,STAGING_PROFILE_ID=$PROFILE_ID,g" gradle.properties
env:
GPG_KEY_ARMOR: "${{ secrets.SIGNING_KEY_ARMOR }}"
GPG_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
GPG_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
PROFILE_ID: ${{ secrets.STAGING_PROFILE_ID }}
# - name: Create gpg key and import into gradle properties
# run: |
# echo $GPG_KEY_ARMOR | base64 --decode > ./release.asc
# gpg --quiet --output $GITHUB_WORKSPACE/release.gpg --dearmor ./release.asc
# sed -i -e "s,nexusUsername=,nexusUsername=$NEXUS_USERNAME,g" gradle.properties
# sed -i -e "s,nexusPassword=,nexusPassword=$NEXUS_PASSWORD,g" gradle.properties
# sed -i -e "s,signing.keyId=,signing.keyId=$GPG_KEY_ID,g" gradle.properties
# sed -i -e "s,signing.password=,signing.password=$GPG_PASSWORD,g" gradle.properties
# sed -i -e "s,signing.secretKeyRingFile=,signing.secretKeyRingFile=$GITHUB_WORKSPACE/release.gpg,g" gradle.properties
# sed -i -e "s,STAGING_PROFILE_ID=,STAGING_PROFILE_ID=$PROFILE_ID,g" gradle.properties
# env:
# GPG_KEY_ARMOR: "${{ secrets.SIGNING_KEY_ARMOR }}"
# GPG_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
# GPG_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
# NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
# NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
# PROFILE_ID: ${{ secrets.STAGING_PROFILE_ID }}

- name: Publish to sonatype
run: ./gradlew publish -Dorg.gradle.parallel=false
Expand Down

0 comments on commit 89a605d

Please sign in to comment.