From 80723a50b6cebfd0f4b116268d85dd4f748a3e69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jc=20Mi=C3=B1arro?= Date: Wed, 14 May 2025 14:44:27 +0200 Subject: [PATCH 1/2] Create new publish-new-version workflow --- .github/workflows/publish-new-version.yml | 31 +++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/publish-new-version.yml diff --git a/.github/workflows/publish-new-version.yml b/.github/workflows/publish-new-version.yml new file mode 100644 index 0000000..fec3de4 --- /dev/null +++ b/.github/workflows/publish-new-version.yml @@ -0,0 +1,31 @@ +name: Publish New Version + +on: + workflow_dispatch: + inputs: + bump: + type: choice + description: "Type of version bump to perform" + options: + - patch + - minor + - major + +jobs: + publish: + uses: GetStream/android-ci-actions/.github/workflows/release-new-version.yml@main + with: + ref: "develop" + bump: ${{ inputs.bump }} + file-path: ./buildSrc/src/main/kotlin/io/getstream/Configurations.kt + use-official-plugin: false + excluded-modules: "app" + documentation-tasks: "sourcesJar" + secrets: + 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 }} + STREAM_PUBLIC_BOT_TOKEN: ${{ secrets.STREAM_PUBLIC_BOT_TOKEN }} From d7cb1edd8c162895f6e0d566716f8c99f9761668 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jc=20Mi=C3=B1arro?= Date: Wed, 14 May 2025 16:01:43 +0200 Subject: [PATCH 2/2] Remove old "publish workflows" --- .github/workflows/publish.yml | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index ccb0f2c..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Publish - -on: - release: - types: [ released ] - workflow_dispatch: - -jobs: - publish: - name: Release build and publish - runs-on: macos-latest - steps: - - name: Check out code - uses: actions/checkout@v2 - - name: Set up JDK 17 - uses: actions/setup-java@v3.6.0 - with: - distribution: adopt - java-version: 17 - - name: Release build - # assembleRelease for all modules, excluding non-library modules: samples, docs - run: ./gradlew assembleRelease -x :app:assembleRelease - - - name: Publish to MavenCentral - run: ./gradlew publishAllPublicationsToMavenCentral --no-configuration-cache - env: - ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.OSSRH_USERNAME }} - ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }} - ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }} - ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} - ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }}