Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to gradle/actions/setup-gradle #292

Merged
merged 1 commit into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,15 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v3
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'

- name: check jacocoTestReport
uses: gradle/gradle-build-action@v3
- uses: gradle/actions/setup-gradle@v3
with:
arguments: check jacocoTestReport
validate-wrappers: true

- run: ./gradlew check jacocoTestReport

- uses: EnricoMi/publish-unit-test-result-action@v2
with:
Expand All @@ -30,12 +29,11 @@ jobs:

- name: publishToMavenLocal
if: github.repository_owner == 'JuulLabs'
uses: gradle/gradle-build-action@v3
with:
arguments: |
-PVERSION_NAME=unspecified
-PsigningInMemoryKey=${{ secrets.SIGNING_KEY }}
-PsigningInMemoryKeyPassword=${{ secrets.SIGNING_PASSWORD }}
publishToMavenLocal
run: >
./gradlew
-PVERSION_NAME=unspecified
-PsigningInMemoryKey='${{ secrets.SIGNING_KEY }}'
-PsigningInMemoryKeyPassword='${{ secrets.SIGNING_PASSWORD }}'
publishToMavenLocal

- uses: codecov/codecov-action@v4
6 changes: 2 additions & 4 deletions .github/workflows/dokka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@ jobs:
with:
distribution: 'temurin'
java-version: '17'
- uses: gradle/actions/setup-gradle@v3

- name: dokkaHtmlMultiModule
uses: gradle/gradle-build-action@v3
with:
arguments: dokkaHtmlMultiModule
- run: ./gradlew dokkaHtmlMultiModule

- uses: JamesIves/github-pages-deploy-action@v4
with:
Expand Down
24 changes: 10 additions & 14 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,20 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v3
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- uses: gradle/actions/setup-gradle@v3

- name: check
uses: gradle/gradle-build-action@v3
with:
arguments: check
- run: ./gradlew check

- name: publish
uses: gradle/gradle-build-action@v3
with:
arguments: |
-PVERSION_NAME=${{ github.ref_name }}
-PsigningInMemoryKey=${{ secrets.SIGNING_KEY }}
-PsigningInMemoryKeyPassword=${{ secrets.SIGNING_PASSWORD }}
-PmavenCentralUsername=${{ secrets.OSS_SONATYPE_NEXUS_USERNAME }}
-PmavenCentralPassword=${{ secrets.OSS_SONATYPE_NEXUS_PASSWORD }}
publish
run: >
./gradlew
-PVERSION_NAME='${{ github.ref_name }}'
-PsigningInMemoryKey='${{ secrets.SIGNING_KEY }}'
-PsigningInMemoryKeyPassword='${{ secrets.SIGNING_PASSWORD }}'
-PmavenCentralUsername='${{ secrets.OSS_SONATYPE_NEXUS_USERNAME }}'
-PmavenCentralPassword='${{ secrets.OSS_SONATYPE_NEXUS_PASSWORD }}'
publish
Loading