From aae5b6a49948961bee976cb6b7183c13558ec424 Mon Sep 17 00:00:00 2001 From: Alex Shepeliev Date: Sat, 29 Jul 2023 14:29:25 +0300 Subject: [PATCH] Fix publish action --- .github/workflows/publish.yml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8eb1c0a1..617f396c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,6 +1,3 @@ -# This workflow will build a Java project with Gradle -# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle - name: Publish on: @@ -13,17 +10,29 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Cocoapods cache + uses: actions/cache@v3 + id: cocoapods-cache + with: + path: | + ~/.cocoapods + ~/Library/Caches/CocoaPods + */build/cocoapods + */build/classes + key: cocoapods-cache + - name: Set up JDK 17 uses: actions/setup-java@v1 with: java-version: 17 + cache: gradle + + - name: Gradle cache + uses: gradle/gradle-build-action@v2 - name: Grant execute permission for gradlew run: chmod +x gradlew - - name: Fetch xCode frameworks - run: carthage update --use-xcframeworks - - name: Publish to MavenCentral run: ./gradlew publishAllPublicationsToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository env: