Skip to content

Commit

Permalink
use the 'deploy' profile in Github Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
leoger committed Dec 8, 2024
1 parent 81aae5b commit eab17b5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
cache: 'maven'

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

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

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

build_windows:
runs-on: windows-latest
Expand All @@ -93,7 +93,7 @@ jobs:
cache: 'maven'

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

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

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

- name: Run native tests
working-directory: ./nitrite-native-tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
PGP_KEY_PASSWORD: ${{ secrets.PGP_KEY_PASSWORD }}

- name: Deploy Release
run: mvn -B -ff -ntp deploy -DskipTests -Dgpg.passphrase="$PGP_KEY_PASSWORD"
run: mvn -P deploy -B -ff -ntp deploy -DskipTests -Dgpg.passphrase="$PGP_KEY_PASSWORD"
shell: bash
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USER }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
PGP_KEY_PASSWORD: ${{ secrets.PGP_KEY_PASSWORD }}

- name: Deploy Snapshot
run: mvn -B -ff -ntp deploy -DskipTests -Dgpg.passphrase="$PGP_KEY_PASSWORD"
run: mvn -P deploy -B -ff -ntp deploy -DskipTests -Dgpg.passphrase="$PGP_KEY_PASSWORD"
shell: bash
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USER }}
Expand Down
6 changes: 1 addition & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@

<profiles>
<profile>
<id>release</id>
<id>deploy</id>
<build>
<plugins>
<plugin>
Expand All @@ -541,10 +541,6 @@
</plugin>
</plugins>
</build>
<activation>
<!-- "true" to maintain existing behavior until CI jobs, etc. add "-P release" to the mvn args -->
<activeByDefault>true</activeByDefault>
</activation>
</profile>

</profiles>
Expand Down

0 comments on commit eab17b5

Please sign in to comment.