From 9806ae6e9b8edc0dcefe240acf7c123a07376177 Mon Sep 17 00:00:00 2001 From: bohdan-go-wombat Date: Thu, 23 May 2024 17:35:33 +0300 Subject: [PATCH] push lib to maven for DIA-3574-update-sdk-dep-view-binding --- .github/workflows/test-maven-release.yml | 36 ++++++++++++++++++++++++ cmplibrary/gradle.properties | 2 +- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test-maven-release.yml diff --git a/.github/workflows/test-maven-release.yml b/.github/workflows/test-maven-release.yml new file mode 100644 index 000000000..87188f09a --- /dev/null +++ b/.github/workflows/test-maven-release.yml @@ -0,0 +1,36 @@ +name: SDK Release + +on: + push: + branches: [ DIA-3574-update-sdk-dep-view-binding ] + +jobs: + build: + name: Create Release and tag + runs-on: macos-latest + permissions: + contents: write + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Build and test + run: | + ./gradlew cmplibrary:build + - name: Prepare environment + env: + SIGNING_SECRET_KEY_RING_FILE_CONTENT: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE_CONTENT }} + SIGNING_SECRET_KEY_RING_FILE: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }} + run: | + sudo bash -c "echo '$SIGNING_SECRET_KEY_RING_FILE_CONTENT' | base64 -d > '$SIGNING_SECRET_KEY_RING_FILE'" + - name: Release build + run: ./gradlew cmplibrary:assemble + - name: Source jar and dokka + run: ./gradlew androidSourcesJar javadocJar + - name: Publish to MavenCentral + run: ./gradlew publishReleasePublicationToSonatypeRepository #--max-workers 1 closeAndReleaseRepository --info + env: + OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} + OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} + SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} + SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} + SIGNING_SECRET_KEY_RING_FILE: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }} \ No newline at end of file diff --git a/cmplibrary/gradle.properties b/cmplibrary/gradle.properties index 294c6f08e..9fc668269 100644 --- a/cmplibrary/gradle.properties +++ b/cmplibrary/gradle.properties @@ -1,4 +1,4 @@ -VERSION_NAME = 7.8.1 +VERSION_NAME = dia-view-binding-experiment POM_NAME = cmplibrary POM_REPO = sourcepoint