Skip to content

Commit ce900e1

Browse files
committed
use the release profile in Github Workflows
1 parent 81aae5b commit ce900e1

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
cache: 'maven'
4040

4141
- name: Build with Maven
42-
run: mvn -B -ff -ntp clean install -Dgpg.skip=true
42+
run: mvn -B -ff -ntp clean install
4343

4444
- name: Publish Code Coverage
4545
if: github.ref == 'refs/heads/main' && matrix.java == '11'
@@ -70,7 +70,7 @@ jobs:
7070
cache: 'maven'
7171

7272
- name: Build with Maven
73-
run: mvn -B -ff -ntp clean install -Dgpg.skip=true
73+
run: mvn -B -ff -ntp clean install
7474

7575
build_windows:
7676
runs-on: windows-latest
@@ -93,7 +93,7 @@ jobs:
9393
cache: 'maven'
9494

9595
- name: Build with Maven
96-
run: mvn -B -ff -ntp clean install --% -Dgpg.skip=true
96+
run: mvn -B -ff -ntp clean install --%
9797

9898
verify-native:
9999
name: Verify GraalVM ${{ matrix.java }} compatibility on ${{ matrix.os }}
@@ -111,7 +111,7 @@ jobs:
111111
distribution: 'graalvm-community'
112112

113113
- name: Install nitrite
114-
run: mvn -B -ff -ntp clean install "-Dgpg.skip=true" -DskipTests
114+
run: mvn -B -ff -ntp clean install -DskipTests
115115

116116
- name: Run native tests
117117
working-directory: ./nitrite-native-tests

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
PGP_KEY_PASSWORD: ${{ secrets.PGP_KEY_PASSWORD }}
5252

5353
- name: Deploy Release
54-
run: mvn -B -ff -ntp deploy -DskipTests -Dgpg.passphrase="$PGP_KEY_PASSWORD"
54+
run: mvn -B -ff -ntp -P release deploy -DskipTests -Dgpg.passphrase="$PGP_KEY_PASSWORD"
5555
shell: bash
5656
env:
5757
MAVEN_USERNAME: ${{ secrets.OSSRH_USER }}

.github/workflows/snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
PGP_KEY_PASSWORD: ${{ secrets.PGP_KEY_PASSWORD }}
5252

5353
- name: Deploy Snapshot
54-
run: mvn -B -ff -ntp deploy -DskipTests -Dgpg.passphrase="$PGP_KEY_PASSWORD"
54+
run: mvn -B -ff -ntp -P release deploy -DskipTests -Dgpg.passphrase="$PGP_KEY_PASSWORD"
5555
shell: bash
5656
env:
5757
MAVEN_USERNAME: ${{ secrets.OSSRH_USER }}

pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -541,10 +541,6 @@
541541
</plugin>
542542
</plugins>
543543
</build>
544-
<activation>
545-
<!-- "true" to maintain existing behavior until CI jobs, etc. add "-P release" to the mvn args -->
546-
<activeByDefault>true</activeByDefault>
547-
</activation>
548544
</profile>
549545

550546
</profiles>

0 commit comments

Comments
 (0)