Skip to content

Commit

Permalink
fixed triggering and deploy problem on actions (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
shokakucarrier authored Nov 15, 2023
1 parent 26bdf62 commit 8f35612
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/maven-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
[{
Expand All @@ -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

0 comments on commit 8f35612

Please sign in to comment.