-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed triggering and deploy problem on actions (#99)
- Loading branch information
1 parent
26bdf62
commit 8f35612
Showing
1 changed file
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
watch: | ||
types: [started] | ||
pull_request: | ||
types: [opened, reopened, edited] | ||
types: [opened, reopened, edited, synchronize, ready_for_review] | ||
push: | ||
branches: | ||
- main | ||
|
@@ -29,6 +29,15 @@ jobs: | |
architecture: x64 | ||
|
||
- uses: s4u/[email protected] | ||
with: | ||
sonatypeSnapshots: true | ||
|
||
- name: Build the Maven verify phase | ||
run: mvn -B -V clean verify -Prun-its -Pci | ||
|
||
|
||
- uses: s4u/[email protected] | ||
if: ${{ github.event_name == 'push' }} | ||
with: | ||
servers: | | ||
[{ | ||
|
@@ -37,8 +46,6 @@ jobs: | |
"password": "${{ secrets.SONATYPE_BOT_TOKEN }}" | ||
}] | ||
- name: Build the Maven verify phase | ||
run: mvn -B -V clean verify -Prun-its -Pci | ||
|
||
- name: Deploy the artifact | ||
if: ${{ github.event_name == 'push' }} | ||
run: mvn help:effective-settings -B -V clean deploy -e |