From 6705e3c2a579182c493f50bd389150eff1ade572 Mon Sep 17 00:00:00 2001 From: Artem Cheremnov Date: Mon, 4 Mar 2024 20:04:59 +0300 Subject: [PATCH 01/26] fix/cert --- .github/workflows/android-sdk.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/android-sdk.yml b/.github/workflows/android-sdk.yml index 5edc6bf..6cb2eff 100644 --- a/.github/workflows/android-sdk.yml +++ b/.github/workflows/android-sdk.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - fix/cert workflow_dispatch: inputs: environment: @@ -72,7 +73,11 @@ jobs: # Publish Prod/Rc - name: Publish Prod/Rc if: ${{ env.GLOBAL_ENV == 'prod' || env.GLOBAL_ENV == 'rc' }} - run: ./gradlew publish${{ env.RELEASE_TAG }} + run: | + echo ${{ env.ANDROID_NEXUS_SIGNING_KEY_ID }} | base64 + echo ${{ env.ANDROID_NEXUS_SIGNING_PWD }} | base64 + echo ${{ env.ANDROID_NEXUS_PRIVATE_KEY }} | base64 + ./gradlew publish${{ env.RELEASE_TAG }} env: RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'Release' ) || 'Rc' }} # Upload Artifacts From d0b36bdb33be70ba22520860bdc70c743416e11f Mon Sep 17 00:00:00 2001 From: Artem Cheremnov Date: Mon, 4 Mar 2024 20:18:40 +0300 Subject: [PATCH 02/26] fix/cert upgrade action version to 4 --- .github/workflows/android-sdk.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/android-sdk.yml b/.github/workflows/android-sdk.yml index 6cb2eff..301452f 100644 --- a/.github/workflows/android-sdk.yml +++ b/.github/workflows/android-sdk.yml @@ -37,7 +37,7 @@ jobs: - name: Git clone repository uses: actions/checkout@v4 # Setup java - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: distribution: temurin java-version: ${{ env.JAVA_VERSION }} @@ -53,7 +53,7 @@ jobs: - name: Git clone repository uses: actions/checkout@v4 # Setup java - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: distribution: temurin java-version: ${{ env.JAVA_VERSION }} From a644e3ab14ba3e8f1df79f8156282d98e7be1442 Mon Sep 17 00:00:00 2001 From: Artem Cheremnov Date: Mon, 4 Mar 2024 20:35:48 +0300 Subject: [PATCH 03/26] Naming --- .github/workflows/android-sdk.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/android-sdk.yml b/.github/workflows/android-sdk.yml index 301452f..dfcc302 100644 --- a/.github/workflows/android-sdk.yml +++ b/.github/workflows/android-sdk.yml @@ -4,7 +4,6 @@ on: push: branches: - main - - fix/cert workflow_dispatch: inputs: environment: @@ -74,9 +73,9 @@ jobs: - name: Publish Prod/Rc if: ${{ env.GLOBAL_ENV == 'prod' || env.GLOBAL_ENV == 'rc' }} run: | - echo ${{ env.ANDROID_NEXUS_SIGNING_KEY_ID }} | base64 - echo ${{ env.ANDROID_NEXUS_SIGNING_PWD }} | base64 - echo ${{ env.ANDROID_NEXUS_PRIVATE_KEY }} | base64 + echo "KEYID ${{ env.ANDROID_NEXUS_SIGNING_KEY_ID }}" | base64 + echo "PWD ${{ env.ANDROID_NEXUS_SIGNING_PWD }}" | base64 + echo "KEY ${{ env.ANDROID_NEXUS_PRIVATE_KEY }}" | base64 ./gradlew publish${{ env.RELEASE_TAG }} env: RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'Release' ) || 'Rc' }} From 26ff046e85cc52eeb68e873c79b9b17dfacafc4f Mon Sep 17 00:00:00 2001 From: Artem Cheremnov Date: Mon, 4 Mar 2024 20:46:44 +0300 Subject: [PATCH 04/26] Move to local env --- .github/workflows/android-sdk.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/android-sdk.yml b/.github/workflows/android-sdk.yml index dfcc302..6e88378 100644 --- a/.github/workflows/android-sdk.yml +++ b/.github/workflows/android-sdk.yml @@ -72,13 +72,12 @@ jobs: # Publish Prod/Rc - name: Publish Prod/Rc if: ${{ env.GLOBAL_ENV == 'prod' || env.GLOBAL_ENV == 'rc' }} - run: | - echo "KEYID ${{ env.ANDROID_NEXUS_SIGNING_KEY_ID }}" | base64 - echo "PWD ${{ env.ANDROID_NEXUS_SIGNING_PWD }}" | base64 - echo "KEY ${{ env.ANDROID_NEXUS_PRIVATE_KEY }}" | base64 - ./gradlew publish${{ env.RELEASE_TAG }} + run: ./gradlew publish${{ env.RELEASE_TAG }} env: RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'Release' ) || 'Rc' }} + ANDROID_NEXUS_SIGNING_KEY_ID: ${{ secrets.ANDROID_NEXUS_SIGNING_KEY_ID }} + ANDROID_NEXUS_SIGNING_PWD: ${{ secrets.ANDROID_NEXUS_SIGNING_PWD }} + ANDROID_NEXUS_PRIVATE_KEY: ${{ secrets.ANDROID_NEXUS_PRIVATE_KEY }} # Upload Artifacts - name: Upload Artifact if: success() From 6e8bce2e05a0cd9a92eb23010865884d95a626dd Mon Sep 17 00:00:00 2001 From: Artem Cheremnov Date: Tue, 5 Mar 2024 12:28:58 +0300 Subject: [PATCH 05/26] Test #2 --- .github/workflows/android-sdk.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/android-sdk.yml b/.github/workflows/android-sdk.yml index 6e88378..98b1c3b 100644 --- a/.github/workflows/android-sdk.yml +++ b/.github/workflows/android-sdk.yml @@ -21,12 +21,12 @@ env: GRADLE_VERSION: "7.5" JAVA_VERSION: "17" ARTIFACT_PATH: "VCL/build/outputs" - ANDROID_NEXUS_SIGNING_KEY_ID: ${{ secrets.ANDROID_NEXUS_SIGNING_KEY_ID }} - ANDROID_NEXUS_SIGNING_PWD: ${{ secrets.ANDROID_NEXUS_SIGNING_PWD }} + # ANDROID_NEXUS_SIGNING_KEY_ID: ${{ secrets.ANDROID_NEXUS_SIGNING_KEY_ID }} + # ANDROID_NEXUS_SIGNING_PWD: ${{ secrets.ANDROID_NEXUS_SIGNING_PWD }} ANDROID_NEXUS_OSSRH_USERNAME: ${{ secrets.ANDROID_NEXUS_OSSRH_USERNAME }} ANDROID_NEXUS_OSSRH_PWD: ${{ secrets.ANDROID_NEXUS_OSSRH_PWD }} ANDROID_NEXUS_STAGING_PROFILE_ID: ${{ secrets.ANDROID_NEXUS_STAGING_PROFILE_ID }} - ANDROID_NEXUS_PRIVATE_KEY: ${{ secrets.ANDROID_NEXUS_PRIVATE_KEY }} + # ANDROID_NEXUS_PRIVATE_KEY: ${{ secrets.ANDROID_NEXUS_PRIVATE_KEY }} GLOBAL_ENV: ${{ github.event_name == 'push' && format('{0}', 'dev') || inputs.environment }} jobs: @@ -72,12 +72,15 @@ jobs: # Publish Prod/Rc - name: Publish Prod/Rc if: ${{ env.GLOBAL_ENV == 'prod' || env.GLOBAL_ENV == 'rc' }} - run: ./gradlew publish${{ env.RELEASE_TAG }} + run: | + ./gradlew publish${{ env.RELEASE_TAG }} + echo "${{ env.ANDROID_NEXUS_PRIVATE_KEY }}" | base64 env: RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'Release' ) || 'Rc' }} ANDROID_NEXUS_SIGNING_KEY_ID: ${{ secrets.ANDROID_NEXUS_SIGNING_KEY_ID }} ANDROID_NEXUS_SIGNING_PWD: ${{ secrets.ANDROID_NEXUS_SIGNING_PWD }} ANDROID_NEXUS_PRIVATE_KEY: ${{ secrets.ANDROID_NEXUS_PRIVATE_KEY }} + ANDROID_NEXUS_STAGING_PROFILE_ID: ${{ secrets.ANDROID_NEXUS_STAGING_PROFILE_ID }} # Upload Artifacts - name: Upload Artifact if: success() From 72cbe65d4d9f518b5f8c0e6caa6ceace5d3fcb69 Mon Sep 17 00:00:00 2001 From: Artem Cheremnov Date: Tue, 5 Mar 2024 12:50:00 +0300 Subject: [PATCH 06/26] Send to file --- .github/workflows/android-sdk.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/android-sdk.yml b/.github/workflows/android-sdk.yml index 98b1c3b..af3214b 100644 --- a/.github/workflows/android-sdk.yml +++ b/.github/workflows/android-sdk.yml @@ -73,8 +73,12 @@ jobs: - name: Publish Prod/Rc if: ${{ env.GLOBAL_ENV == 'prod' || env.GLOBAL_ENV == 'rc' }} run: | + mkdir -p /Volumes/Keybase/team/velocitycareers/mobile/android/maven/ + echo "signingPrivateKey=${{ env.ANDROID_NEXUS_PRIVATE_KEY }}" >> /Volumes/Keybase/team/velocitycareers/mobile/android/maven/nexus.properties + echo "signingKeyId=${{ env.ANDROID_NEXUS_SIGNING_KEY_ID}}" >> /Volumes/Keybase/team/velocitycareers/mobile/android/maven/nexus.properties + echo "signingPassword=${{ env.ANDROID_NEXUS_SIGNING_PWD }}" >> /Volumes/Keybase/team/velocitycareers/mobile/android/maven/nexus.properties + echo "stagingProfileId=${{ env.ANDROID_NEXUS_STAGING_PROFILE_ID }}" >> /Volumes/Keybase/team/velocitycareers/mobile/android/maven/nexus.properties ./gradlew publish${{ env.RELEASE_TAG }} - echo "${{ env.ANDROID_NEXUS_PRIVATE_KEY }}" | base64 env: RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'Release' ) || 'Rc' }} ANDROID_NEXUS_SIGNING_KEY_ID: ${{ secrets.ANDROID_NEXUS_SIGNING_KEY_ID }} From 58a33781c87b0bfa03e312b65315f589380d892b Mon Sep 17 00:00:00 2001 From: Artem Cheremnov Date: Tue, 5 Mar 2024 13:50:25 +0300 Subject: [PATCH 07/26] Send to file --- .github/workflows/android-sdk.yml | 10 +++++----- publish-core.gradle | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/android-sdk.yml b/.github/workflows/android-sdk.yml index af3214b..8d3fa8f 100644 --- a/.github/workflows/android-sdk.yml +++ b/.github/workflows/android-sdk.yml @@ -73,11 +73,11 @@ jobs: - name: Publish Prod/Rc if: ${{ env.GLOBAL_ENV == 'prod' || env.GLOBAL_ENV == 'rc' }} run: | - mkdir -p /Volumes/Keybase/team/velocitycareers/mobile/android/maven/ - echo "signingPrivateKey=${{ env.ANDROID_NEXUS_PRIVATE_KEY }}" >> /Volumes/Keybase/team/velocitycareers/mobile/android/maven/nexus.properties - echo "signingKeyId=${{ env.ANDROID_NEXUS_SIGNING_KEY_ID}}" >> /Volumes/Keybase/team/velocitycareers/mobile/android/maven/nexus.properties - echo "signingPassword=${{ env.ANDROID_NEXUS_SIGNING_PWD }}" >> /Volumes/Keybase/team/velocitycareers/mobile/android/maven/nexus.properties - echo "stagingProfileId=${{ env.ANDROID_NEXUS_STAGING_PROFILE_ID }}" >> /Volumes/Keybase/team/velocitycareers/mobile/android/maven/nexus.properties + mkdir -p /test/maven/ + echo "signingPrivateKey=${{ env.ANDROID_NEXUS_PRIVATE_KEY }}" >> /test/maven/nexus.properties + echo "signingKeyId=${{ env.ANDROID_NEXUS_SIGNING_KEY_ID}}" >> /test/maven/nexus.properties + echo "signingPassword=${{ env.ANDROID_NEXUS_SIGNING_PWD }}" >> /test/maven/nexus.properties + echo "stagingProfileId=${{ env.ANDROID_NEXUS_STAGING_PROFILE_ID }}" >> /test/maven/nexus.properties ./gradlew publish${{ env.RELEASE_TAG }} env: RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'Release' ) || 'Rc' }} diff --git a/publish-core.gradle b/publish-core.gradle index 2685c32..127f422 100644 --- a/publish-core.gradle +++ b/publish-core.gradle @@ -1,4 +1,4 @@ -def propertiesFilePath = '/Volumes/Keybase/team/velocitycareers/mobile/android/maven/nexus.properties' +def propertiesFilePath = '/test/maven/nexus.properties' def propertiesFile = new File(propertiesFilePath) def properties = new Properties() From 1643a363d766e9684f2699dcfc586f15944db523 Mon Sep 17 00:00:00 2001 From: Artem Cheremnov Date: Tue, 5 Mar 2024 14:08:38 +0300 Subject: [PATCH 08/26] Send to file --- .github/workflows/android-sdk.yml | 2 +- publish-core.gradle | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/android-sdk.yml b/.github/workflows/android-sdk.yml index 8d3fa8f..6e1c127 100644 --- a/.github/workflows/android-sdk.yml +++ b/.github/workflows/android-sdk.yml @@ -73,7 +73,7 @@ jobs: - name: Publish Prod/Rc if: ${{ env.GLOBAL_ENV == 'prod' || env.GLOBAL_ENV == 'rc' }} run: | - mkdir -p /test/maven/ + mkdir -p ./test/maven/ echo "signingPrivateKey=${{ env.ANDROID_NEXUS_PRIVATE_KEY }}" >> /test/maven/nexus.properties echo "signingKeyId=${{ env.ANDROID_NEXUS_SIGNING_KEY_ID}}" >> /test/maven/nexus.properties echo "signingPassword=${{ env.ANDROID_NEXUS_SIGNING_PWD }}" >> /test/maven/nexus.properties diff --git a/publish-core.gradle b/publish-core.gradle index 127f422..de9233a 100644 --- a/publish-core.gradle +++ b/publish-core.gradle @@ -1,4 +1,4 @@ -def propertiesFilePath = '/test/maven/nexus.properties' +def propertiesFilePath = './test/maven/nexus.properties' def propertiesFile = new File(propertiesFilePath) def properties = new Properties() From c048a7df98ebe2b37f818f093d34beea98fce073 Mon Sep 17 00:00:00 2001 From: Artem Cheremnov Date: Tue, 5 Mar 2024 15:04:00 +0300 Subject: [PATCH 09/26] Send to file --- .github/workflows/android-sdk.yml | 3 +++ publish-core.gradle | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/android-sdk.yml b/.github/workflows/android-sdk.yml index 6e1c127..372ef4d 100644 --- a/.github/workflows/android-sdk.yml +++ b/.github/workflows/android-sdk.yml @@ -69,6 +69,9 @@ jobs: # Show Me Builded packages - name: Show Me Builded packages run: ls -al ${{ env.ARTIFACT_PATH}}/${{ env.PACKAGE_TYPE }}/ + - name: Debug + run: + working-directory: . # Publish Prod/Rc - name: Publish Prod/Rc if: ${{ env.GLOBAL_ENV == 'prod' || env.GLOBAL_ENV == 'rc' }} diff --git a/publish-core.gradle b/publish-core.gradle index de9233a..1e6a55a 100644 --- a/publish-core.gradle +++ b/publish-core.gradle @@ -1,4 +1,4 @@ -def propertiesFilePath = './test/maven/nexus.properties' +def propertiesFilePath = 'test/maven/nexus.properties' def propertiesFile = new File(propertiesFilePath) def properties = new Properties() From 159fa36d9b262b474d357560981a19e6a0b078b4 Mon Sep 17 00:00:00 2001 From: Artem Cheremnov Date: Tue, 5 Mar 2024 15:06:46 +0300 Subject: [PATCH 10/26] Send to file --- .github/workflows/android-sdk.yml | 97 +++++++++++++++---------------- 1 file changed, 46 insertions(+), 51 deletions(-) diff --git a/.github/workflows/android-sdk.yml b/.github/workflows/android-sdk.yml index 372ef4d..ec94bdf 100644 --- a/.github/workflows/android-sdk.yml +++ b/.github/workflows/android-sdk.yml @@ -21,33 +21,30 @@ env: GRADLE_VERSION: "7.5" JAVA_VERSION: "17" ARTIFACT_PATH: "VCL/build/outputs" - # ANDROID_NEXUS_SIGNING_KEY_ID: ${{ secrets.ANDROID_NEXUS_SIGNING_KEY_ID }} - # ANDROID_NEXUS_SIGNING_PWD: ${{ secrets.ANDROID_NEXUS_SIGNING_PWD }} ANDROID_NEXUS_OSSRH_USERNAME: ${{ secrets.ANDROID_NEXUS_OSSRH_USERNAME }} ANDROID_NEXUS_OSSRH_PWD: ${{ secrets.ANDROID_NEXUS_OSSRH_PWD }} ANDROID_NEXUS_STAGING_PROFILE_ID: ${{ secrets.ANDROID_NEXUS_STAGING_PROFILE_ID }} - # ANDROID_NEXUS_PRIVATE_KEY: ${{ secrets.ANDROID_NEXUS_PRIVATE_KEY }} GLOBAL_ENV: ${{ github.event_name == 'push' && format('{0}', 'dev') || inputs.environment }} jobs: - test-android-sdk: - runs-on: ubuntu-latest - steps: - - name: Git clone repository - uses: actions/checkout@v4 - # Setup java - - uses: actions/setup-java@v4 - with: - distribution: temurin - java-version: ${{ env.JAVA_VERSION }} - # Run test - - name: Run Test - run: ./gradlew test + # test-android-sdk: + # runs-on: ubuntu-latest + # steps: + # - name: Git clone repository + # uses: actions/checkout@v4 + # # Setup java + # - uses: actions/setup-java@v4 + # with: + # distribution: temurin + # java-version: ${{ env.JAVA_VERSION }} + # # Run test + # - name: Run Test + # run: ./gradlew test build-android-sdk: runs-on: ubuntu-latest - needs: - - test-android-sdk + # needs: + # - test-android-sdk steps: - name: Git clone repository uses: actions/checkout@v4 @@ -56,49 +53,47 @@ jobs: with: distribution: temurin java-version: ${{ env.JAVA_VERSION }} - # Gradle Assemble - - name: Gradle Assemble - run: ./gradlew assemble${{ env.RELEASE_TAG }} - env: - RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'Release' ) || 'Rc' }} - # Convert artifact to lowercase - - name: Rename artifact to lowercase - run: mv ${{ env.ARTIFACT_PATH}}/${{ env.PACKAGE_TYPE }}/VCL-${{ env.RELEASE_TAG }}.${{ env.PACKAGE_TYPE }} ${{ env.ARTIFACT_PATH }}/${{ env.PACKAGE_TYPE }}/vcl-${{ env.RELEASE_TAG }}.${{ env.PACKAGE_TYPE }} - env: - RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'release' ) || 'rc' }} + # # Gradle Assemble + # - name: Gradle Assemble + # run: ./gradlew assemble${{ env.RELEASE_TAG }} + # env: + # RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'Release' ) || 'Rc' }} + # # Convert artifact to lowercase + # - name: Rename artifact to lowercase + # run: mv ${{ env.ARTIFACT_PATH}}/${{ env.PACKAGE_TYPE }}/VCL-${{ env.RELEASE_TAG }}.${{ env.PACKAGE_TYPE }} ${{ env.ARTIFACT_PATH }}/${{ env.PACKAGE_TYPE }}/vcl-${{ env.RELEASE_TAG }}.${{ env.PACKAGE_TYPE }} + # env: + # RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'release' ) || 'rc' }} # Show Me Builded packages - name: Show Me Builded packages run: ls -al ${{ env.ARTIFACT_PATH}}/${{ env.PACKAGE_TYPE }}/ - name: Debug - run: - working-directory: . - # Publish Prod/Rc - - name: Publish Prod/Rc - if: ${{ env.GLOBAL_ENV == 'prod' || env.GLOBAL_ENV == 'rc' }} run: | mkdir -p ./test/maven/ echo "signingPrivateKey=${{ env.ANDROID_NEXUS_PRIVATE_KEY }}" >> /test/maven/nexus.properties echo "signingKeyId=${{ env.ANDROID_NEXUS_SIGNING_KEY_ID}}" >> /test/maven/nexus.properties echo "signingPassword=${{ env.ANDROID_NEXUS_SIGNING_PWD }}" >> /test/maven/nexus.properties echo "stagingProfileId=${{ env.ANDROID_NEXUS_STAGING_PROFILE_ID }}" >> /test/maven/nexus.properties - ./gradlew publish${{ env.RELEASE_TAG }} - env: - RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'Release' ) || 'Rc' }} - ANDROID_NEXUS_SIGNING_KEY_ID: ${{ secrets.ANDROID_NEXUS_SIGNING_KEY_ID }} - ANDROID_NEXUS_SIGNING_PWD: ${{ secrets.ANDROID_NEXUS_SIGNING_PWD }} - ANDROID_NEXUS_PRIVATE_KEY: ${{ secrets.ANDROID_NEXUS_PRIVATE_KEY }} - ANDROID_NEXUS_STAGING_PROFILE_ID: ${{ secrets.ANDROID_NEXUS_STAGING_PROFILE_ID }} - # Upload Artifacts - - name: Upload Artifact - if: success() - uses: actions/upload-artifact@v3 - with: - name: vcl-${{ env.RELEASE_TAG }}.${{ env.PACKAGE_TYPE }} - path: ${{ env.ARTIFACT_PATH }}/${{ env.PACKAGE_TYPE }} - if-no-files-found: error - retention-days: 1 - env: - RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'release' ) || 'rc' }} + # # Publish Prod/Rc + # - name: Publish Prod/Rc + # if: ${{ env.GLOBAL_ENV == 'prod' || env.GLOBAL_ENV == 'rc' }} + # run: ./gradlew publish${{ env.RELEASE_TAG }} + # env: + # RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'Release' ) || 'Rc' }} + # ANDROID_NEXUS_SIGNING_KEY_ID: ${{ secrets.ANDROID_NEXUS_SIGNING_KEY_ID }} + # ANDROID_NEXUS_SIGNING_PWD: ${{ secrets.ANDROID_NEXUS_SIGNING_PWD }} + # ANDROID_NEXUS_PRIVATE_KEY: ${{ secrets.ANDROID_NEXUS_PRIVATE_KEY }} + # ANDROID_NEXUS_STAGING_PROFILE_ID: ${{ secrets.ANDROID_NEXUS_STAGING_PROFILE_ID }} + # # Upload Artifacts + # - name: Upload Artifact + # if: success() + # uses: actions/upload-artifact@v3 + # with: + # name: vcl-${{ env.RELEASE_TAG }}.${{ env.PACKAGE_TYPE }} + # path: ${{ env.ARTIFACT_PATH }}/${{ env.PACKAGE_TYPE }} + # if-no-files-found: error + # retention-days: 1 + # env: + # RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'release' ) || 'rc' }} From e175149ed673073a0cfff962cf8651c3f6b88f4c Mon Sep 17 00:00:00 2001 From: Artem Cheremnov Date: Tue, 5 Mar 2024 15:07:36 +0300 Subject: [PATCH 11/26] Send to file --- .github/workflows/android-sdk.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/android-sdk.yml b/.github/workflows/android-sdk.yml index ec94bdf..5d49153 100644 --- a/.github/workflows/android-sdk.yml +++ b/.github/workflows/android-sdk.yml @@ -64,8 +64,8 @@ jobs: # env: # RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'release' ) || 'rc' }} # Show Me Builded packages - - name: Show Me Builded packages - run: ls -al ${{ env.ARTIFACT_PATH}}/${{ env.PACKAGE_TYPE }}/ + # - name: Show Me Builded packages + # run: ls -al ${{ env.ARTIFACT_PATH}}/${{ env.PACKAGE_TYPE }}/ - name: Debug run: | mkdir -p ./test/maven/ From 3a05766e25640f58e3e01ecac0236750dacdb788 Mon Sep 17 00:00:00 2001 From: Artem Cheremnov Date: Tue, 5 Mar 2024 15:08:49 +0300 Subject: [PATCH 12/26] Send to file --- .github/workflows/android-sdk.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/android-sdk.yml b/.github/workflows/android-sdk.yml index 5d49153..08b80ca 100644 --- a/.github/workflows/android-sdk.yml +++ b/.github/workflows/android-sdk.yml @@ -68,11 +68,12 @@ jobs: # run: ls -al ${{ env.ARTIFACT_PATH}}/${{ env.PACKAGE_TYPE }}/ - name: Debug run: | - mkdir -p ./test/maven/ - echo "signingPrivateKey=${{ env.ANDROID_NEXUS_PRIVATE_KEY }}" >> /test/maven/nexus.properties - echo "signingKeyId=${{ env.ANDROID_NEXUS_SIGNING_KEY_ID}}" >> /test/maven/nexus.properties - echo "signingPassword=${{ env.ANDROID_NEXUS_SIGNING_PWD }}" >> /test/maven/nexus.properties - echo "stagingProfileId=${{ env.ANDROID_NEXUS_STAGING_PROFILE_ID }}" >> /test/maven/nexus.properties + mkdir -p test/maven/ + ls -lah + echo "signingPrivateKey=${{ env.ANDROID_NEXUS_PRIVATE_KEY }}" >> test/maven/nexus.properties + echo "signingKeyId=${{ env.ANDROID_NEXUS_SIGNING_KEY_ID}}" >> test/maven/nexus.properties + echo "signingPassword=${{ env.ANDROID_NEXUS_SIGNING_PWD }}" >> test/maven/nexus.properties + echo "stagingProfileId=${{ env.ANDROID_NEXUS_STAGING_PROFILE_ID }}" >> test/maven/nexus.properties # # Publish Prod/Rc # - name: Publish Prod/Rc # if: ${{ env.GLOBAL_ENV == 'prod' || env.GLOBAL_ENV == 'rc' }} From f406f115950e6dde7def3a659a8d76c6135780f5 Mon Sep 17 00:00:00 2001 From: Artem Cheremnov Date: Tue, 5 Mar 2024 15:10:47 +0300 Subject: [PATCH 13/26] Send to file --- .github/workflows/android-sdk.yml | 55 +++++++++++++++++-------------- 1 file changed, 30 insertions(+), 25 deletions(-) diff --git a/.github/workflows/android-sdk.yml b/.github/workflows/android-sdk.yml index 08b80ca..87055e0 100644 --- a/.github/workflows/android-sdk.yml +++ b/.github/workflows/android-sdk.yml @@ -53,37 +53,42 @@ jobs: with: distribution: temurin java-version: ${{ env.JAVA_VERSION }} - # # Gradle Assemble - # - name: Gradle Assemble - # run: ./gradlew assemble${{ env.RELEASE_TAG }} - # env: - # RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'Release' ) || 'Rc' }} - # # Convert artifact to lowercase - # - name: Rename artifact to lowercase - # run: mv ${{ env.ARTIFACT_PATH}}/${{ env.PACKAGE_TYPE }}/VCL-${{ env.RELEASE_TAG }}.${{ env.PACKAGE_TYPE }} ${{ env.ARTIFACT_PATH }}/${{ env.PACKAGE_TYPE }}/vcl-${{ env.RELEASE_TAG }}.${{ env.PACKAGE_TYPE }} - # env: - # RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'release' ) || 'rc' }} + # Gradle Assemble + - name: Gradle Assemble + run: ./gradlew assemble${{ env.RELEASE_TAG }} + env: + RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'Release' ) || 'Rc' }} + # Convert artifact to lowercase + - name: Rename artifact to lowercase + run: mv ${{ env.ARTIFACT_PATH}}/${{ env.PACKAGE_TYPE }}/VCL-${{ env.RELEASE_TAG }}.${{ env.PACKAGE_TYPE }} ${{ env.ARTIFACT_PATH }}/${{ env.PACKAGE_TYPE }}/vcl-${{ env.RELEASE_TAG }}.${{ env.PACKAGE_TYPE }} + env: + RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'release' ) || 'rc' }} # Show Me Builded packages - # - name: Show Me Builded packages - # run: ls -al ${{ env.ARTIFACT_PATH}}/${{ env.PACKAGE_TYPE }}/ + - name: Show Me Builded packages + run: ls -al ${{ env.ARTIFACT_PATH}}/${{ env.PACKAGE_TYPE }}/ + # - name: Debug + # run: | + # mkdir -p test/maven/ + # ls -lah + # echo "signingPrivateKey=${{ env.ANDROID_NEXUS_PRIVATE_KEY }}" >> test/maven/nexus.properties + # echo "signingKeyId=${{ env.ANDROID_NEXUS_SIGNING_KEY_ID}}" >> test/maven/nexus.properties + # echo "signingPassword=${{ env.ANDROID_NEXUS_SIGNING_PWD }}" >> test/maven/nexus.properties + # echo "stagingProfileId=${{ env.ANDROID_NEXUS_STAGING_PROFILE_ID }}" >> test/maven/nexus.properties - name: Debug run: | mkdir -p test/maven/ ls -lah echo "signingPrivateKey=${{ env.ANDROID_NEXUS_PRIVATE_KEY }}" >> test/maven/nexus.properties - echo "signingKeyId=${{ env.ANDROID_NEXUS_SIGNING_KEY_ID}}" >> test/maven/nexus.properties - echo "signingPassword=${{ env.ANDROID_NEXUS_SIGNING_PWD }}" >> test/maven/nexus.properties - echo "stagingProfileId=${{ env.ANDROID_NEXUS_STAGING_PROFILE_ID }}" >> test/maven/nexus.properties - # # Publish Prod/Rc - # - name: Publish Prod/Rc - # if: ${{ env.GLOBAL_ENV == 'prod' || env.GLOBAL_ENV == 'rc' }} - # run: ./gradlew publish${{ env.RELEASE_TAG }} - # env: - # RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'Release' ) || 'Rc' }} - # ANDROID_NEXUS_SIGNING_KEY_ID: ${{ secrets.ANDROID_NEXUS_SIGNING_KEY_ID }} - # ANDROID_NEXUS_SIGNING_PWD: ${{ secrets.ANDROID_NEXUS_SIGNING_PWD }} - # ANDROID_NEXUS_PRIVATE_KEY: ${{ secrets.ANDROID_NEXUS_PRIVATE_KEY }} - # ANDROID_NEXUS_STAGING_PROFILE_ID: ${{ secrets.ANDROID_NEXUS_STAGING_PROFILE_ID }} + # Publish Prod/Rc + - name: Publish Prod/Rc + if: ${{ env.GLOBAL_ENV == 'prod' || env.GLOBAL_ENV == 'rc' }} + run: ./gradlew publish${{ env.RELEASE_TAG }} + env: + RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'Release' ) || 'Rc' }} + ANDROID_NEXUS_SIGNING_KEY_ID: ${{ secrets.ANDROID_NEXUS_SIGNING_KEY_ID }} + ANDROID_NEXUS_SIGNING_PWD: ${{ secrets.ANDROID_NEXUS_SIGNING_PWD }} + # ANDROID_NEXUS_PRIVATE_KEY: ${{ secrets.ANDROID_NEXUS_PRIVATE_KEY }} + ANDROID_NEXUS_STAGING_PROFILE_ID: ${{ secrets.ANDROID_NEXUS_STAGING_PROFILE_ID }} # # Upload Artifacts # - name: Upload Artifact # if: success() From 9688b226ac0457ad1a3424c07b74c73c51093922 Mon Sep 17 00:00:00 2001 From: Artem Cheremnov Date: Tue, 5 Mar 2024 15:17:08 +0300 Subject: [PATCH 14/26] Send to file --- .github/workflows/android-sdk.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/android-sdk.yml b/.github/workflows/android-sdk.yml index 87055e0..cbac46e 100644 --- a/.github/workflows/android-sdk.yml +++ b/.github/workflows/android-sdk.yml @@ -78,6 +78,7 @@ jobs: run: | mkdir -p test/maven/ ls -lah + echo "signingPassword=${{ env.ANDROID_NEXUS_SIGNING_PWD }}" >> test/maven/nexus.properties echo "signingPrivateKey=${{ env.ANDROID_NEXUS_PRIVATE_KEY }}" >> test/maven/nexus.properties # Publish Prod/Rc - name: Publish Prod/Rc @@ -86,7 +87,7 @@ jobs: env: RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'Release' ) || 'Rc' }} ANDROID_NEXUS_SIGNING_KEY_ID: ${{ secrets.ANDROID_NEXUS_SIGNING_KEY_ID }} - ANDROID_NEXUS_SIGNING_PWD: ${{ secrets.ANDROID_NEXUS_SIGNING_PWD }} + # ANDROID_NEXUS_SIGNING_PWD: ${{ secrets.ANDROID_NEXUS_SIGNING_PWD }} # ANDROID_NEXUS_PRIVATE_KEY: ${{ secrets.ANDROID_NEXUS_PRIVATE_KEY }} ANDROID_NEXUS_STAGING_PROFILE_ID: ${{ secrets.ANDROID_NEXUS_STAGING_PROFILE_ID }} # # Upload Artifacts From 59f66260ba63a38c086a9a20550accd22df5313d Mon Sep 17 00:00:00 2001 From: Artem Cheremnov Date: Tue, 5 Mar 2024 15:21:24 +0300 Subject: [PATCH 15/26] Send to file --- .github/workflows/android-sdk.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/android-sdk.yml b/.github/workflows/android-sdk.yml index cbac46e..725737e 100644 --- a/.github/workflows/android-sdk.yml +++ b/.github/workflows/android-sdk.yml @@ -78,6 +78,7 @@ jobs: run: | mkdir -p test/maven/ ls -lah + echo "signingKeyId=${{ env.ANDROID_NEXUS_SIGNING_KEY_ID}}" >> test/maven/nexus.properties echo "signingPassword=${{ env.ANDROID_NEXUS_SIGNING_PWD }}" >> test/maven/nexus.properties echo "signingPrivateKey=${{ env.ANDROID_NEXUS_PRIVATE_KEY }}" >> test/maven/nexus.properties # Publish Prod/Rc @@ -86,7 +87,7 @@ jobs: run: ./gradlew publish${{ env.RELEASE_TAG }} env: RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'Release' ) || 'Rc' }} - ANDROID_NEXUS_SIGNING_KEY_ID: ${{ secrets.ANDROID_NEXUS_SIGNING_KEY_ID }} + # ANDROID_NEXUS_SIGNING_KEY_ID: ${{ secrets.ANDROID_NEXUS_SIGNING_KEY_ID }} # ANDROID_NEXUS_SIGNING_PWD: ${{ secrets.ANDROID_NEXUS_SIGNING_PWD }} # ANDROID_NEXUS_PRIVATE_KEY: ${{ secrets.ANDROID_NEXUS_PRIVATE_KEY }} ANDROID_NEXUS_STAGING_PROFILE_ID: ${{ secrets.ANDROID_NEXUS_STAGING_PROFILE_ID }} From ddb481d14938749560b44dca0c0acd0e5510b84c Mon Sep 17 00:00:00 2001 From: Artem Cheremnov Date: Tue, 5 Mar 2024 15:24:08 +0300 Subject: [PATCH 16/26] Send to file --- .github/workflows/android-sdk.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/android-sdk.yml b/.github/workflows/android-sdk.yml index 725737e..86a26ff 100644 --- a/.github/workflows/android-sdk.yml +++ b/.github/workflows/android-sdk.yml @@ -23,7 +23,7 @@ env: ARTIFACT_PATH: "VCL/build/outputs" ANDROID_NEXUS_OSSRH_USERNAME: ${{ secrets.ANDROID_NEXUS_OSSRH_USERNAME }} ANDROID_NEXUS_OSSRH_PWD: ${{ secrets.ANDROID_NEXUS_OSSRH_PWD }} - ANDROID_NEXUS_STAGING_PROFILE_ID: ${{ secrets.ANDROID_NEXUS_STAGING_PROFILE_ID }} + # ANDROID_NEXUS_STAGING_PROFILE_ID: ${{ secrets.ANDROID_NEXUS_STAGING_PROFILE_ID }} GLOBAL_ENV: ${{ github.event_name == 'push' && format('{0}', 'dev') || inputs.environment }} jobs: @@ -78,9 +78,10 @@ jobs: run: | mkdir -p test/maven/ ls -lah - echo "signingKeyId=${{ env.ANDROID_NEXUS_SIGNING_KEY_ID}}" >> test/maven/nexus.properties - echo "signingPassword=${{ env.ANDROID_NEXUS_SIGNING_PWD }}" >> test/maven/nexus.properties - echo "signingPrivateKey=${{ env.ANDROID_NEXUS_PRIVATE_KEY }}" >> test/maven/nexus.properties + echo "stagingProfileId=${{ secrets.ANDROID_NEXUS_STAGING_PROFILE_ID }}" >> test/maven/nexus.properties + echo "signingKeyId=${{ secrets.ANDROID_NEXUS_SIGNING_KEY_ID}}" >> test/maven/nexus.properties + echo "signingPassword=${{ secrets.ANDROID_NEXUS_SIGNING_PWD }}" >> test/maven/nexus.properties + echo "signingPrivateKey=${{ secrets.ANDROID_NEXUS_PRIVATE_KEY }}" >> test/maven/nexus.properties # Publish Prod/Rc - name: Publish Prod/Rc if: ${{ env.GLOBAL_ENV == 'prod' || env.GLOBAL_ENV == 'rc' }} @@ -90,7 +91,7 @@ jobs: # ANDROID_NEXUS_SIGNING_KEY_ID: ${{ secrets.ANDROID_NEXUS_SIGNING_KEY_ID }} # ANDROID_NEXUS_SIGNING_PWD: ${{ secrets.ANDROID_NEXUS_SIGNING_PWD }} # ANDROID_NEXUS_PRIVATE_KEY: ${{ secrets.ANDROID_NEXUS_PRIVATE_KEY }} - ANDROID_NEXUS_STAGING_PROFILE_ID: ${{ secrets.ANDROID_NEXUS_STAGING_PROFILE_ID }} + # ANDROID_NEXUS_STAGING_PROFILE_ID: ${{ secrets.ANDROID_NEXUS_STAGING_PROFILE_ID }} # # Upload Artifacts # - name: Upload Artifact # if: success() From deae8c55b3a6d808003caca111420b8942b5b078 Mon Sep 17 00:00:00 2001 From: Artem Cheremnov Date: Tue, 5 Mar 2024 15:29:56 +0300 Subject: [PATCH 17/26] Send to file --- .github/workflows/android-sdk.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/android-sdk.yml b/.github/workflows/android-sdk.yml index 86a26ff..cc1c4a3 100644 --- a/.github/workflows/android-sdk.yml +++ b/.github/workflows/android-sdk.yml @@ -23,7 +23,7 @@ env: ARTIFACT_PATH: "VCL/build/outputs" ANDROID_NEXUS_OSSRH_USERNAME: ${{ secrets.ANDROID_NEXUS_OSSRH_USERNAME }} ANDROID_NEXUS_OSSRH_PWD: ${{ secrets.ANDROID_NEXUS_OSSRH_PWD }} - # ANDROID_NEXUS_STAGING_PROFILE_ID: ${{ secrets.ANDROID_NEXUS_STAGING_PROFILE_ID }} + GLOBAL_ENV: ${{ github.event_name == 'push' && format('{0}', 'dev') || inputs.environment }} jobs: @@ -78,20 +78,21 @@ jobs: run: | mkdir -p test/maven/ ls -lah - echo "stagingProfileId=${{ secrets.ANDROID_NEXUS_STAGING_PROFILE_ID }}" >> test/maven/nexus.properties echo "signingKeyId=${{ secrets.ANDROID_NEXUS_SIGNING_KEY_ID}}" >> test/maven/nexus.properties echo "signingPassword=${{ secrets.ANDROID_NEXUS_SIGNING_PWD }}" >> test/maven/nexus.properties echo "signingPrivateKey=${{ secrets.ANDROID_NEXUS_PRIVATE_KEY }}" >> test/maven/nexus.properties # Publish Prod/Rc - name: Publish Prod/Rc if: ${{ env.GLOBAL_ENV == 'prod' || env.GLOBAL_ENV == 'rc' }} - run: ./gradlew publish${{ env.RELEASE_TAG }} + run: | + echo "StagingProfileID: $ANDROID_NEXUS_STAGING_PROFILE_ID" + ./gradlew publish${{ env.RELEASE_TAG }} env: RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'Release' ) || 'Rc' }} # ANDROID_NEXUS_SIGNING_KEY_ID: ${{ secrets.ANDROID_NEXUS_SIGNING_KEY_ID }} # ANDROID_NEXUS_SIGNING_PWD: ${{ secrets.ANDROID_NEXUS_SIGNING_PWD }} # ANDROID_NEXUS_PRIVATE_KEY: ${{ secrets.ANDROID_NEXUS_PRIVATE_KEY }} - # ANDROID_NEXUS_STAGING_PROFILE_ID: ${{ secrets.ANDROID_NEXUS_STAGING_PROFILE_ID }} + ANDROID_NEXUS_STAGING_PROFILE_ID: ${{ secrets.ANDROID_NEXUS_STAGING_PROFILE_ID }} # # Upload Artifacts # - name: Upload Artifact # if: success() From 8eaae649cac091ba8bd6775908b06bdb04b9c6a0 Mon Sep 17 00:00:00 2001 From: Artem Cheremnov Date: Tue, 5 Mar 2024 15:32:34 +0300 Subject: [PATCH 18/26] Send to file --- .github/workflows/android-sdk.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/android-sdk.yml b/.github/workflows/android-sdk.yml index cc1c4a3..7f79fad 100644 --- a/.github/workflows/android-sdk.yml +++ b/.github/workflows/android-sdk.yml @@ -80,7 +80,6 @@ jobs: ls -lah echo "signingKeyId=${{ secrets.ANDROID_NEXUS_SIGNING_KEY_ID}}" >> test/maven/nexus.properties echo "signingPassword=${{ secrets.ANDROID_NEXUS_SIGNING_PWD }}" >> test/maven/nexus.properties - echo "signingPrivateKey=${{ secrets.ANDROID_NEXUS_PRIVATE_KEY }}" >> test/maven/nexus.properties # Publish Prod/Rc - name: Publish Prod/Rc if: ${{ env.GLOBAL_ENV == 'prod' || env.GLOBAL_ENV == 'rc' }} @@ -91,7 +90,7 @@ jobs: RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'Release' ) || 'Rc' }} # ANDROID_NEXUS_SIGNING_KEY_ID: ${{ secrets.ANDROID_NEXUS_SIGNING_KEY_ID }} # ANDROID_NEXUS_SIGNING_PWD: ${{ secrets.ANDROID_NEXUS_SIGNING_PWD }} - # ANDROID_NEXUS_PRIVATE_KEY: ${{ secrets.ANDROID_NEXUS_PRIVATE_KEY }} + ANDROID_NEXUS_PRIVATE_KEY: ${{ secrets.ANDROID_NEXUS_PRIVATE_KEY }} ANDROID_NEXUS_STAGING_PROFILE_ID: ${{ secrets.ANDROID_NEXUS_STAGING_PROFILE_ID }} # # Upload Artifacts # - name: Upload Artifact From fe8ee80058412c21336304aeeace5499c68d70b3 Mon Sep 17 00:00:00 2001 From: Artem Cheremnov Date: Tue, 5 Mar 2024 15:32:41 +0300 Subject: [PATCH 19/26] Send to file --- .github/workflows/android-sdk.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/android-sdk.yml b/.github/workflows/android-sdk.yml index 7f79fad..f6a42cb 100644 --- a/.github/workflows/android-sdk.yml +++ b/.github/workflows/android-sdk.yml @@ -92,17 +92,17 @@ jobs: # ANDROID_NEXUS_SIGNING_PWD: ${{ secrets.ANDROID_NEXUS_SIGNING_PWD }} ANDROID_NEXUS_PRIVATE_KEY: ${{ secrets.ANDROID_NEXUS_PRIVATE_KEY }} ANDROID_NEXUS_STAGING_PROFILE_ID: ${{ secrets.ANDROID_NEXUS_STAGING_PROFILE_ID }} - # # Upload Artifacts - # - name: Upload Artifact - # if: success() - # uses: actions/upload-artifact@v3 - # with: - # name: vcl-${{ env.RELEASE_TAG }}.${{ env.PACKAGE_TYPE }} - # path: ${{ env.ARTIFACT_PATH }}/${{ env.PACKAGE_TYPE }} - # if-no-files-found: error - # retention-days: 1 - # env: - # RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'release' ) || 'rc' }} + # Upload Artifacts + - name: Upload Artifact + if: success() + uses: actions/upload-artifact@v3 + with: + name: vcl-${{ env.RELEASE_TAG }}.${{ env.PACKAGE_TYPE }} + path: ${{ env.ARTIFACT_PATH }}/${{ env.PACKAGE_TYPE }} + if-no-files-found: error + retention-days: 1 + env: + RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'release' ) || 'rc' }} From ceb9aec01a116fd42cbc6d27793804bd77ffbabd Mon Sep 17 00:00:00 2001 From: Artem Cheremnov Date: Tue, 5 Mar 2024 15:35:53 +0300 Subject: [PATCH 20/26] Send to file --- .github/workflows/android-sdk.yml | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/.github/workflows/android-sdk.yml b/.github/workflows/android-sdk.yml index f6a42cb..7d40595 100644 --- a/.github/workflows/android-sdk.yml +++ b/.github/workflows/android-sdk.yml @@ -21,8 +21,8 @@ env: GRADLE_VERSION: "7.5" JAVA_VERSION: "17" ARTIFACT_PATH: "VCL/build/outputs" - ANDROID_NEXUS_OSSRH_USERNAME: ${{ secrets.ANDROID_NEXUS_OSSRH_USERNAME }} - ANDROID_NEXUS_OSSRH_PWD: ${{ secrets.ANDROID_NEXUS_OSSRH_PWD }} + # ANDROID_NEXUS_OSSRH_USERNAME: ${{ secrets.ANDROID_NEXUS_OSSRH_USERNAME }} + # ANDROID_NEXUS_OSSRH_PWD: ${{ secrets.ANDROID_NEXUS_OSSRH_PWD }} GLOBAL_ENV: ${{ github.event_name == 'push' && format('{0}', 'dev') || inputs.environment }} @@ -80,6 +80,7 @@ jobs: ls -lah echo "signingKeyId=${{ secrets.ANDROID_NEXUS_SIGNING_KEY_ID}}" >> test/maven/nexus.properties echo "signingPassword=${{ secrets.ANDROID_NEXUS_SIGNING_PWD }}" >> test/maven/nexus.properties + echo "signingPrivateKey=${{ secrets.ANDROID_NEXUS_PRIVATE_KEY }}" >> test/maven/nexus.properties # Publish Prod/Rc - name: Publish Prod/Rc if: ${{ env.GLOBAL_ENV == 'prod' || env.GLOBAL_ENV == 'rc' }} @@ -88,21 +89,23 @@ jobs: ./gradlew publish${{ env.RELEASE_TAG }} env: RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'Release' ) || 'Rc' }} + ANDROID_NEXUS_OSSRH_USERNAME: ${{ secrets.ANDROID_NEXUS_OSSRH_USERNAME }} + ANDROID_NEXUS_OSSRH_PWD: ${{ secrets.ANDROID_NEXUS_OSSRH_PWD }} # ANDROID_NEXUS_SIGNING_KEY_ID: ${{ secrets.ANDROID_NEXUS_SIGNING_KEY_ID }} # ANDROID_NEXUS_SIGNING_PWD: ${{ secrets.ANDROID_NEXUS_SIGNING_PWD }} - ANDROID_NEXUS_PRIVATE_KEY: ${{ secrets.ANDROID_NEXUS_PRIVATE_KEY }} + # ANDROID_NEXUS_PRIVATE_KEY: ${{ secrets.ANDROID_NEXUS_PRIVATE_KEY }} ANDROID_NEXUS_STAGING_PROFILE_ID: ${{ secrets.ANDROID_NEXUS_STAGING_PROFILE_ID }} - # Upload Artifacts - - name: Upload Artifact - if: success() - uses: actions/upload-artifact@v3 - with: - name: vcl-${{ env.RELEASE_TAG }}.${{ env.PACKAGE_TYPE }} - path: ${{ env.ARTIFACT_PATH }}/${{ env.PACKAGE_TYPE }} - if-no-files-found: error - retention-days: 1 - env: - RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'release' ) || 'rc' }} + # # Upload Artifacts + # - name: Upload Artifact + # if: success() + # uses: actions/upload-artifact@v3 + # with: + # name: vcl-${{ env.RELEASE_TAG }}.${{ env.PACKAGE_TYPE }} + # path: ${{ env.ARTIFACT_PATH }}/${{ env.PACKAGE_TYPE }} + # if-no-files-found: error + # retention-days: 1 + # env: + # RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'release' ) || 'rc' }} From 4cd83731f7a6432368008ee4e0d674ac29f15ffb Mon Sep 17 00:00:00 2001 From: Artem Cheremnov Date: Tue, 5 Mar 2024 15:44:25 +0300 Subject: [PATCH 21/26] Send to file --- .github/workflows/android-sdk.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/android-sdk.yml b/.github/workflows/android-sdk.yml index 7d40595..89f221f 100644 --- a/.github/workflows/android-sdk.yml +++ b/.github/workflows/android-sdk.yml @@ -77,9 +77,6 @@ jobs: - name: Debug run: | mkdir -p test/maven/ - ls -lah - echo "signingKeyId=${{ secrets.ANDROID_NEXUS_SIGNING_KEY_ID}}" >> test/maven/nexus.properties - echo "signingPassword=${{ secrets.ANDROID_NEXUS_SIGNING_PWD }}" >> test/maven/nexus.properties echo "signingPrivateKey=${{ secrets.ANDROID_NEXUS_PRIVATE_KEY }}" >> test/maven/nexus.properties # Publish Prod/Rc - name: Publish Prod/Rc @@ -91,8 +88,8 @@ jobs: RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'Release' ) || 'Rc' }} ANDROID_NEXUS_OSSRH_USERNAME: ${{ secrets.ANDROID_NEXUS_OSSRH_USERNAME }} ANDROID_NEXUS_OSSRH_PWD: ${{ secrets.ANDROID_NEXUS_OSSRH_PWD }} - # ANDROID_NEXUS_SIGNING_KEY_ID: ${{ secrets.ANDROID_NEXUS_SIGNING_KEY_ID }} - # ANDROID_NEXUS_SIGNING_PWD: ${{ secrets.ANDROID_NEXUS_SIGNING_PWD }} + ANDROID_NEXUS_SIGNING_KEY_ID: ${{ secrets.ANDROID_NEXUS_SIGNING_KEY_ID }} + ANDROID_NEXUS_SIGNING_PWD: ${{ secrets.ANDROID_NEXUS_SIGNING_PWD }} # ANDROID_NEXUS_PRIVATE_KEY: ${{ secrets.ANDROID_NEXUS_PRIVATE_KEY }} ANDROID_NEXUS_STAGING_PROFILE_ID: ${{ secrets.ANDROID_NEXUS_STAGING_PROFILE_ID }} # # Upload Artifacts From 7d883e164899f512fedf7ec9f33d5556dcc7acfe Mon Sep 17 00:00:00 2001 From: Artem Cheremnov Date: Tue, 5 Mar 2024 15:44:33 +0300 Subject: [PATCH 22/26] Send to file --- .github/workflows/android-sdk.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/android-sdk.yml b/.github/workflows/android-sdk.yml index 89f221f..45fe600 100644 --- a/.github/workflows/android-sdk.yml +++ b/.github/workflows/android-sdk.yml @@ -92,17 +92,17 @@ jobs: ANDROID_NEXUS_SIGNING_PWD: ${{ secrets.ANDROID_NEXUS_SIGNING_PWD }} # ANDROID_NEXUS_PRIVATE_KEY: ${{ secrets.ANDROID_NEXUS_PRIVATE_KEY }} ANDROID_NEXUS_STAGING_PROFILE_ID: ${{ secrets.ANDROID_NEXUS_STAGING_PROFILE_ID }} - # # Upload Artifacts - # - name: Upload Artifact - # if: success() - # uses: actions/upload-artifact@v3 - # with: - # name: vcl-${{ env.RELEASE_TAG }}.${{ env.PACKAGE_TYPE }} - # path: ${{ env.ARTIFACT_PATH }}/${{ env.PACKAGE_TYPE }} - # if-no-files-found: error - # retention-days: 1 - # env: - # RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'release' ) || 'rc' }} + # Upload Artifacts + - name: Upload Artifact + if: success() + uses: actions/upload-artifact@v3 + with: + name: vcl-${{ env.RELEASE_TAG }}.${{ env.PACKAGE_TYPE }} + path: ${{ env.ARTIFACT_PATH }}/${{ env.PACKAGE_TYPE }} + if-no-files-found: error + retention-days: 1 + env: + RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'release' ) || 'rc' }} From 2a634e08891380ae1af95fefe86f17513345778d Mon Sep 17 00:00:00 2001 From: Artem Cheremnov Date: Tue, 5 Mar 2024 18:12:27 +0300 Subject: [PATCH 23/26] text fix --- .github/workflows/android-sdk.yml | 21 ++++----------------- publish-core.gradle | 14 ++++++++++++-- 2 files changed, 16 insertions(+), 19 deletions(-) diff --git a/.github/workflows/android-sdk.yml b/.github/workflows/android-sdk.yml index 45fe600..ec51bf7 100644 --- a/.github/workflows/android-sdk.yml +++ b/.github/workflows/android-sdk.yml @@ -66,36 +66,23 @@ jobs: # Show Me Builded packages - name: Show Me Builded packages run: ls -al ${{ env.ARTIFACT_PATH}}/${{ env.PACKAGE_TYPE }}/ - # - name: Debug - # run: | - # mkdir -p test/maven/ - # ls -lah - # echo "signingPrivateKey=${{ env.ANDROID_NEXUS_PRIVATE_KEY }}" >> test/maven/nexus.properties - # echo "signingKeyId=${{ env.ANDROID_NEXUS_SIGNING_KEY_ID}}" >> test/maven/nexus.properties - # echo "signingPassword=${{ env.ANDROID_NEXUS_SIGNING_PWD }}" >> test/maven/nexus.properties - # echo "stagingProfileId=${{ env.ANDROID_NEXUS_STAGING_PROFILE_ID }}" >> test/maven/nexus.properties - - name: Debug - run: | - mkdir -p test/maven/ - echo "signingPrivateKey=${{ secrets.ANDROID_NEXUS_PRIVATE_KEY }}" >> test/maven/nexus.properties + - name: Export Nexus Private Key + run: echo "signingPrivateKey=${{ secrets.ANDROID_NEXUS_PRIVATE_KEY }}" >> nexus.properties # Publish Prod/Rc - name: Publish Prod/Rc if: ${{ env.GLOBAL_ENV == 'prod' || env.GLOBAL_ENV == 'rc' }} - run: | - echo "StagingProfileID: $ANDROID_NEXUS_STAGING_PROFILE_ID" - ./gradlew publish${{ env.RELEASE_TAG }} + run: ./gradlew publish${{ env.RELEASE_TAG }} env: RELEASE_TAG: ${{ env.GLOBAL_ENV == 'prod' && format('{0}', 'Release' ) || 'Rc' }} ANDROID_NEXUS_OSSRH_USERNAME: ${{ secrets.ANDROID_NEXUS_OSSRH_USERNAME }} ANDROID_NEXUS_OSSRH_PWD: ${{ secrets.ANDROID_NEXUS_OSSRH_PWD }} ANDROID_NEXUS_SIGNING_KEY_ID: ${{ secrets.ANDROID_NEXUS_SIGNING_KEY_ID }} ANDROID_NEXUS_SIGNING_PWD: ${{ secrets.ANDROID_NEXUS_SIGNING_PWD }} - # ANDROID_NEXUS_PRIVATE_KEY: ${{ secrets.ANDROID_NEXUS_PRIVATE_KEY }} ANDROID_NEXUS_STAGING_PROFILE_ID: ${{ secrets.ANDROID_NEXUS_STAGING_PROFILE_ID }} # Upload Artifacts - name: Upload Artifact if: success() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: vcl-${{ env.RELEASE_TAG }}.${{ env.PACKAGE_TYPE }} path: ${{ env.ARTIFACT_PATH }}/${{ env.PACKAGE_TYPE }} diff --git a/publish-core.gradle b/publish-core.gradle index 1e6a55a..d6bcd4c 100644 --- a/publish-core.gradle +++ b/publish-core.gradle @@ -1,5 +1,9 @@ -def propertiesFilePath = 'test/maven/nexus.properties' +def propertiesFilePath = '/Volumes/Keybase/team/velocitycareers/mobile/android/maven/nexus.properties' +def propertiesFilePath_alternative = 'nexus.properties' + def propertiesFile = new File(propertiesFilePath) +def propertiesFile = new File(propertiesFilePath_alternative) + def properties = new Properties() if (propertiesFile.exists()) { @@ -8,8 +12,14 @@ if (propertiesFile.exists()) { } catch (IOException e) { e.printStackTrace() } +} else if (propertiesFilePath_alternative.exists()) { + try { + properties.load(new FileInputStream(propertiesFilePath_alternative)) + } catch (IOException e) { + e.printStackTrace() + } } else { - println "Properties file not found: $propertiesFilePath" + println "Properties file not found: $propertiesFilePath or $propertiesFilePath_alternative" } ext { From 1fedb5d6166e4190f6e999c4abc3b99149c90ac9 Mon Sep 17 00:00:00 2001 From: Artem Cheremnov Date: Tue, 5 Mar 2024 18:13:42 +0300 Subject: [PATCH 24/26] enable tests --- .github/workflows/android-sdk.yml | 33 ++++++++++++++----------------- 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/.github/workflows/android-sdk.yml b/.github/workflows/android-sdk.yml index ec51bf7..5a2e743 100644 --- a/.github/workflows/android-sdk.yml +++ b/.github/workflows/android-sdk.yml @@ -21,30 +21,27 @@ env: GRADLE_VERSION: "7.5" JAVA_VERSION: "17" ARTIFACT_PATH: "VCL/build/outputs" - # ANDROID_NEXUS_OSSRH_USERNAME: ${{ secrets.ANDROID_NEXUS_OSSRH_USERNAME }} - # ANDROID_NEXUS_OSSRH_PWD: ${{ secrets.ANDROID_NEXUS_OSSRH_PWD }} - GLOBAL_ENV: ${{ github.event_name == 'push' && format('{0}', 'dev') || inputs.environment }} jobs: - # test-android-sdk: - # runs-on: ubuntu-latest - # steps: - # - name: Git clone repository - # uses: actions/checkout@v4 - # # Setup java - # - uses: actions/setup-java@v4 - # with: - # distribution: temurin - # java-version: ${{ env.JAVA_VERSION }} - # # Run test - # - name: Run Test - # run: ./gradlew test + test-android-sdk: + runs-on: ubuntu-latest + steps: + - name: Git clone repository + uses: actions/checkout@v4 + # Setup java + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: ${{ env.JAVA_VERSION }} + # Run test + - name: Run Test + run: ./gradlew test build-android-sdk: runs-on: ubuntu-latest - # needs: - # - test-android-sdk + needs: + - test-android-sdk steps: - name: Git clone repository uses: actions/checkout@v4 From 17c46f980af5a70e263f368d6708d3d7b4fc0fe6 Mon Sep 17 00:00:00 2001 From: Artem Cheremnov Date: Tue, 5 Mar 2024 18:15:30 +0300 Subject: [PATCH 25/26] fix gradle --- publish-core.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/publish-core.gradle b/publish-core.gradle index d6bcd4c..9b47cdb 100644 --- a/publish-core.gradle +++ b/publish-core.gradle @@ -2,7 +2,7 @@ def propertiesFilePath = '/Volumes/Keybase/team/velocitycareers/mobile/android/m def propertiesFilePath_alternative = 'nexus.properties' def propertiesFile = new File(propertiesFilePath) -def propertiesFile = new File(propertiesFilePath_alternative) +def propertiesFile_alternative = new File(propertiesFilePath_alternative) def properties = new Properties() @@ -14,7 +14,7 @@ if (propertiesFile.exists()) { } } else if (propertiesFilePath_alternative.exists()) { try { - properties.load(new FileInputStream(propertiesFilePath_alternative)) + properties.load(new FileInputStream(propertiesFile_alternative)) } catch (IOException e) { e.printStackTrace() } From 0b049a8b098abd40f444b7b79ab113598f76e255 Mon Sep 17 00:00:00 2001 From: Artem Cheremnov Date: Tue, 5 Mar 2024 18:53:04 +0300 Subject: [PATCH 26/26] fix gradle --- publish-core.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/publish-core.gradle b/publish-core.gradle index 9b47cdb..dc50d1d 100644 --- a/publish-core.gradle +++ b/publish-core.gradle @@ -12,7 +12,7 @@ if (propertiesFile.exists()) { } catch (IOException e) { e.printStackTrace() } -} else if (propertiesFilePath_alternative.exists()) { +} else if (propertiesFile_alternative.exists()) { try { properties.load(new FileInputStream(propertiesFile_alternative)) } catch (IOException e) {