Skip to content

Commit

Permalink
Fixing Github Actions files for the deprecated functionality from the…
Browse files Browse the repository at this point in the history
… 'gradle/gradle-build-action' action. (#925)
  • Loading branch information
iNoles authored Jun 30, 2024
1 parent 4a1e88c commit 6c9a661
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,16 @@ jobs:
distribution: 'temurin'
java-version: '17'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Gradle build
uses: gradle/gradle-build-action@v3
with:
arguments: build -x iosX64Test
run: ./gradlew build -x iosX64Test

- name: Publish to SNAPSHOT
uses: gradle/actions/setup-gradle@v3
env:
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
with:
arguments: publishAllPublicationsToSonatypeRepository --max-workers 1
run: ./gradlew publishAllPublicationsToSonatypeRepository --max-workers 1
7 changes: 4 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ jobs:
distribution: 'temurin'
java-version: '17'

- name: Gradle build
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
arguments: build -x iosX64Test

- name: Gradle build
run: ./gradlew build -x iosX64Test
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,16 @@ jobs:
distribution: 'temurin'
java-version: '17'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Gradle build
uses: gradle/gradle-build-action@v3
with:
arguments: build -x iosX64Test
run: ./gradlew build -x iosX64Test

- name: Publish to MavenCentral
uses: gradle/actions/setup-gradle@v3
env:
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
with:
arguments: publish --max-workers 1 -Prelease=true
run: ./gradlew publish --max-workers 1 -Prelease=true

0 comments on commit 6c9a661

Please sign in to comment.