Skip to content

Commit

Permalink
Fix publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
shepeliev committed Jul 29, 2023
1 parent 23fa914 commit aae5b6a
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit aae5b6a

Please sign in to comment.