Skip to content

Commit

Permalink
[enhancement]removing publish to maven central on each push
Browse files Browse the repository at this point in the history
  • Loading branch information
minakh1993 committed May 19, 2024
1 parent c9b3904 commit e506243
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and deploy per push
name: Build per push

on:
push:
Expand Down Expand Up @@ -30,12 +30,6 @@ jobs:
git config user.name "GitHub Actions"
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Publish to the Maven Central Repository
run: |
mvn \
--no-transfer-progress \
--batch-mode \
deploy -Pbuild
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
Expand Down

0 comments on commit e506243

Please sign in to comment.