From fe4e80d8b8817e75d0edcaf0392366ec7a2fc819 Mon Sep 17 00:00:00 2001 From: Lachlan McKee Date: Sun, 3 Sep 2023 18:43:15 +0100 Subject: [PATCH] Fixed artifact publishing after updating to AGP 8.x --- .github/workflows/build.yml | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 43f8f1a39a..a75b9458a9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,13 +34,6 @@ jobs: mergeDetektSarif :plugins:buildPlugins --continue - - name: Check publication setup - run: > - ./gradlew - publishAllPublicationsToOSSRHRepository - publishAllPublicationsToSonatypeSnapshotRepository - --dry-run - --no-parallel - name: Deploy snapshot if: env.MAIN_BRANCH == 'true' && github.repository == 'bumble-tech/appyx' env: @@ -72,6 +65,29 @@ jobs: **/build/reports/ !**/build/reports/dependency-analysis/ + publication-verification: + name: Publication verification + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + distribution: 'zulu' + java-version: '17' + - uses: gradle/wrapper-validation-action@v1 + - uses: gradle/gradle-build-action@v2 + with: + cache-read-only: ${{ env.MAIN_BRANCH != 'true' }} + - name: Check publication setup + run: > + ./gradlew + publishAllPublicationsToOSSRHRepository + publishAllPublicationsToSonatypeSnapshotRepository + --dry-run + --no-parallel + - name: Publish locally + run: ./gradlew publishToMavenLocal --no-parallel + instrumentation-tests: name: Instrumentation tests runs-on: macOS-latest