Skip to content
This repository has been archived by the owner on Nov 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #18 from xezzon/develop
Browse files Browse the repository at this point in the history
通过 GitHub Actions 自动为 flatten-maven-plugin 设置版本
  • Loading branch information
xezzon authored Jan 27, 2024
2 parents 9fa24f4 + c21a10e commit 0a3cad2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,8 @@ jobs:
server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import

- name: Set Version
run: mvn versions:set -DnewVersion=$GITHUB_REF

- name: Publish to Apache Maven Central
run: mvn deploy -P report,release -DskipTests=true
run: mvn deploy -P report,release -DskipTests=true -Drevision=$GITHUB_REF
env:
MAVEN_USERNAME: ${{ vars.MAVEN_USERNAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
Expand Down

0 comments on commit 0a3cad2

Please sign in to comment.