Skip to content

Commit

Permalink
Add step to publish releases
Browse files Browse the repository at this point in the history
  • Loading branch information
sunye committed May 26, 2022
1 parent f05cc6a commit 64a842c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/maven-legacy.yml
Expand Up @@ -64,15 +64,18 @@ jobs:
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
VERSION: $${{ env.VERSION }}
if: contains(env.VERSION, 'SNAPSHOT' )
run: |
mvn \
--no-transfer-progress \
--batch-mode \
clean install deploy \
--settings .util/settings.xml \
-DskipTests
-DskipTests
- name: Publish release to Central
if: ${{ !contains(env.VERSION, 'SNAPSHOT' ) }}
run: |
echo "NOT SNAPSHOT"
#-s .util/settings.xml -DskipTests clean package javadoc:jar source:jar-no-fork gpg:sign install deploy
Expand Down

0 comments on commit 64a842c

Please sign in to comment.