Skip to content

Commit

Permalink
gh-45 upate workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknow0 committed Jun 29, 2024
1 parent 65fecff commit debe621
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 19 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/mavenpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ jobs:
with:
distribution: temurin
java-version: 11
server-id: ossrh
server-username: MVN_USER
server-password: MVN_PASS
server-id: central
server-username: MVN_CENTRAL_USER
server-password: MVN_CENTRAL_PASS

- name: set version
run: mvn -B versions:set -DnewVersion=${GITHUB_REF##*/}

- name: build
run: mvn -B -P deploy package
run: mvn -B -P deploy verify

- name: install xmllint
run: |-
Expand All @@ -35,8 +35,4 @@ jobs:

- name: publish
run: mvn -B -P deploy deploy
env:
MVN_USER: ${{secrets.OSS_USER}}
MVN_PASS: ${{secrets.OSS_PASS}}
MAVEN_GPG_KEY: ${{secrets.MAVEN_GPG_KEY}}

17 changes: 6 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</version>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.5.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -193,11 +193,6 @@
<scope>test</scope>
</dependency>

<dependency>
<groupId>unknow.sax</groupId>
<artifactId>unknow-sax</artifactId>
<version>${unknow-sax.version}</version>
</dependency>
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
Expand Down Expand Up @@ -412,12 +407,12 @@
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<artifactId>central-publishing-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
<publishingServerId>central</publishingServerId>
<autoPublish>true</autoPublish>
<waitUntil>published</waitUntil>
</configuration>
</plugin>
</plugins>
Expand Down

0 comments on commit debe621

Please sign in to comment.