diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9d5c7dbe3..2b9a8303b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,8 +4,6 @@ on: push: branches: - master - - mt-coroutines - - version-2.0 pull_request: jobs: diff --git a/.github/workflows/release-nmtc.yml b/.github/workflows/release-nmtc.yml deleted file mode 100644 index b3a9a74d3..000000000 --- a/.github/workflows/release-nmtc.yml +++ /dev/null @@ -1,110 +0,0 @@ -name: Release nmtc - -on: - workflow_dispatch: - -jobs: - create-staging-repository: - runs-on: ubuntu-latest - name: Create staging repository - outputs: - repository-id: ${{ steps.create.outputs.repository_id }} - steps: - - id: create - name: Create staging repository - uses: nexus-actions/create-nexus-staging-repo@3e5e7209801629febdcf75541a4898710d28df9a - with: - username: ${{ secrets.SONATYPE_USERNAME }} - password: ${{ secrets.SONATYPE_PASSWORD }} - staging_profile_id: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }} - description: ${{ github.repository }}/${{ github.workflow }}#${{ github.run_number }} - - linux-host-publish: - name: Release on Ubuntu - runs-on: ubuntu-latest - needs: create-staging-repository - env: - SIGNING_KEY: ${{ secrets.SIGNING_KEY }} - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Install Java - uses: actions/setup-java@v3 - with: - distribution: 'zulu' - java-version: '11' - - name: Validate Gradle Wrapper - uses: gradle/wrapper-validation-action@v1 - - name: Release JVM, Android, JS, Linux - uses: gradle/gradle-build-action@v2 - with: - cache-read-only: true - arguments: | - :coroutines-interop:publishAllFilteredToSonatype - -Ptarget=all_linux_hosted - -Psigning.password=${{ secrets.SIGNING_PASSWORD }} - -Psonatype.username=${{ secrets.SONATYPE_USERNAME }} - -Psonatype.password=${{ secrets.SONATYPE_PASSWORD }} - -Psonatype.repository=${{ needs.create-staging-repository.outputs.repository-id }} - - name: Release Metadata - uses: gradle/gradle-build-action@v2 - with: - cache-read-only: true - arguments: | - :coroutines-interop:publishAllFilteredToSonatype - -Ptarget=meta - -Psigning.password=${{ secrets.SIGNING_PASSWORD }} - -Psonatype.username=${{ secrets.SONATYPE_USERNAME }} - -Psonatype.password=${{ secrets.SONATYPE_PASSWORD }} - -Psonatype.repository=${{ needs.create-staging-repository.outputs.repository-id }} - - macos-host-publish: - name: Release on macOS - runs-on: macOS-latest - needs: create-staging-repository - env: - SIGNING_KEY: ${{ secrets.SIGNING_KEY }} - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Install Java - uses: actions/setup-java@v3 - with: - distribution: 'zulu' - java-version: '11' - - name: Select Xcode version - uses: maxim-lobanov/setup-xcode@9a697e2b393340c3cacd97468baa318e4c883d98 - with: - xcode-version: '13.4.1' - - name: Release iOS, MacOS - uses: gradle/gradle-build-action@v2 - with: - cache-read-only: true - arguments: | - :coroutines-interop:publishAllFilteredToSonatype - -Ptarget=all_macos_hosted - -Psigning.password=${{ secrets.SIGNING_PASSWORD }} - -Psonatype.username=${{ secrets.SONATYPE_USERNAME }} - -Psonatype.password=${{ secrets.SONATYPE_PASSWORD }} - -Psonatype.repository=${{ needs.create-staging-repository.outputs.repository-id }} - - close-staging-repository: - runs-on: ubuntu-latest - needs: [ create-staging-repository, macos-host-publish, linux-host-publish ] - if: ${{ always() && needs.create-staging-repository.result == 'success' }} - steps: - - name: Discard - if: ${{ needs.linux-host-publish.result != 'success' || needs.macos-host-publish.result != 'success' }} - uses: nexus-actions/drop-nexus-staging-repo@59443053a1b36f5f71ede68776d73294bf4bfb5e - with: - username: ${{ secrets.SONATYPE_USERNAME }} - password: ${{ secrets.SONATYPE_PASSWORD }} - staging_repository_id: ${{ needs.create-staging-repository.outputs.repository-id }} - - name: Release - if: ${{ needs.linux-host-publish.result == 'success' && needs.macos-host-publish.result == 'success' }} - uses: nexus-actions/release-nexus-staging-repo@f2b4c7f64ecec2cb0d24349182c1bbeda5c4c056 - with: - username: ${{ secrets.SONATYPE_USERNAME }} - password: ${{ secrets.SONATYPE_PASSWORD }} - staging_repository_id: ${{ needs.create-staging-repository.outputs.repository-id }} - close_only: true diff --git a/coroutines-interop/build.gradle b/coroutines-interop/build.gradle index 4981f1222..58bf3fe85 100644 --- a/coroutines-interop/build.gradle +++ b/coroutines-interop/build.gradle @@ -4,8 +4,6 @@ plugins { id 'detekt-configuration' } -version = "${property("reaktive_version")}-nmtc" - android { namespace "com.badoo.reaktive.coroutinesinterop" }