diff --git a/.github/workflows/android-release.yml b/.github/workflows/android-release.yml index 7080780f7..b54f21db9 100644 --- a/.github/workflows/android-release.yml +++ b/.github/workflows/android-release.yml @@ -23,6 +23,11 @@ jobs: BUILDTYPE: Release IS_LOCAL_DEVELOPMENT: false steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + fetch-depth: 0 + - name: Map renderer input id: backend_lowercase run: | @@ -32,11 +37,6 @@ jobs: echo "backend_lowercase=vulkan" >> "$GITHUB_ENV" fi - - uses: actions/checkout@v4 - with: - submodules: recursive - fetch-depth: 0 - - run: echo "cmake.dir=$(dirname "$(dirname "$(command -v cmake)")")" >> local.properties - uses: actions/setup-java@v4 @@ -204,3 +204,4 @@ jobs: SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }} + RENDERER: ${{ env.backend_lowercase }} diff --git a/platform/android/gradle/gradle-publish.gradle b/platform/android/gradle/gradle-publish.gradle index cd38bcd6b..735d9cd65 100644 --- a/platform/android/gradle/gradle-publish.gradle +++ b/platform/android/gradle/gradle-publish.gradle @@ -44,7 +44,7 @@ afterEvaluate { artifactId project.ext.mapLibreArtifactId version this.version - from components.drawableRelease + from components."${System.getenv('RENDERER')?.toLowerCase() == 'vulkan' ? 'vulkanRelease' : 'drawableRelease'}" pom { name = project.ext.mapLibreArtifactTitle