Skip to content

Commit 024f13d

Browse files
committed
ci: always use release profile
1 parent f002bf1 commit 024f13d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/gradle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Setup Gradle
3838
uses: gradle/actions/setup-gradle@v4
3939
- name: Build and Test with Gradle
40-
run: ./gradlew build
40+
run: ./gradlew -Dprofile=release build
4141
- name: Upload (test) reports as artifact on GitHub on manual runs
4242
if: github.event_name == 'workflow_dispatch'
4343
uses: actions/upload-artifact@v4
@@ -46,4 +46,4 @@ jobs:
4646
path: build/reports
4747
- name: Do one Coveralls test report
4848
if: matrix.os == 'ubuntu-latest' && matrix.jdk == 21
49-
run: ./gradlew jacocoTestReport coveralls
49+
run: ./gradlew -Dprofile=release jacocoTestReport coveralls

.github/workflows/publishRelease.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
java-version: 21
1616
distribution: 'zulu' # openjdk
1717
- name: Publish package
18-
run: gradle -PreleaseBuildConfig publishToSonatype closeAndReleaseSonatypeStagingRepository
18+
run: gradle -Dprofile=release publishToSonatype closeAndReleaseSonatypeStagingRepository
1919
env:
2020
ORG_GRADLE_PROJECT_sonatypeUsername : ${{ secrets.OSSRH_USERNAME }}
2121
ORG_GRADLE_PROJECT_sonatypePassword : ${{ secrets.OSSRH_PASSWORD }}

0 commit comments

Comments
 (0)