Skip to content

Commit 8544086

Browse files
Merge pull request #8 from jonpereiradev/feature/review
Feature/review
2 parents 620d9fa + 50f6355 commit 8544086

File tree

2 files changed

+14
-30
lines changed

2 files changed

+14
-30
lines changed

.github/workflows/deploy-action.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,20 @@ name: Deploy
33
on:
44
push:
55
branches:
6+
- main
67
- master
78

89
jobs:
910
deploy:
10-
runs-on: ubuntu-18.04
11+
runs-on: ubuntu-latest
1112
steps:
1213
- name: Check out Git repository
13-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
1415

1516
- name: Install Java and Maven
16-
uses: actions/setup-java@v1
17+
uses: actions/setup-java@v4
1718
with:
18-
java-version: 1.8
19-
20-
- name: Cache Maven packages
21-
uses: actions/cache@v2
22-
with:
23-
path: ~/.m2
24-
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
25-
restore-keys: ${{ runner.os }}-m2
19+
java-version: 11
2620

2721
- name: Test Maven package
2822
run: mvn -B test --file pom.xml
@@ -31,7 +25,7 @@ jobs:
3125
run: mvn -B package --file pom.xml -DskipTests
3226

3327
- name: Deploy Sonatype
34-
uses: samuelmeuli/action-maven-publish@v1
28+
run: mvn -P deploy --batch-mode deploy -DskipTests
3529
with:
3630
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
3731
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}

pom.xml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
<plugin>
7979
<groupId>org.apache.maven.plugins</groupId>
8080
<artifactId>maven-source-plugin</artifactId>
81-
<version>3.2.1</version>
81+
<version>3.3.1</version>
8282
<executions>
8383
<execution>
8484
<id>attach-sources</id>
@@ -91,7 +91,7 @@
9191
<plugin>
9292
<groupId>org.apache.maven.plugins</groupId>
9393
<artifactId>maven-javadoc-plugin</artifactId>
94-
<version>3.2.0</version>
94+
<version>3.11.2</version>
9595
<executions>
9696
<execution>
9797
<id>attach-javadocs</id>
@@ -112,27 +112,17 @@
112112
<profiles>
113113
<profile>
114114
<id>deploy</id>
115-
<distributionManagement>
116-
<snapshotRepository>
117-
<id>deploy</id>
118-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
119-
</snapshotRepository>
120-
<repository>
121-
<id>deploy</id>
122-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
123-
</repository>
124-
</distributionManagement>
125115
<build>
126116
<plugins>
127117
<plugin>
128-
<groupId>org.sonatype.plugins</groupId>
129-
<artifactId>nexus-staging-maven-plugin</artifactId>
130-
<version>1.7.0</version>
118+
<groupId>org.sonatype.central</groupId>
119+
<artifactId>central-publishing-maven-plugin</artifactId>
120+
<version>0.7.0</version>
131121
<extensions>true</extensions>
132122
<configuration>
133-
<serverId>ossrh</serverId>
134-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
135-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
123+
<publishingServerId>central</publishingServerId>
124+
<tokenAuth>true</tokenAuth>
125+
<autoPublish>true</autoPublish>
136126
</configuration>
137127
</plugin>
138128
<plugin>

0 commit comments

Comments
 (0)