Skip to content

Commit 9e1ea46

Browse files
committed
ci: trigger publish on workflow_dispatch and push to main, use pom version
1 parent 4864942 commit 9e1ea46

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/maven-publish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: Maven Package to Hycraft Nexus
22

33
on:
4-
release:
5-
types: [created]
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
68

79
jobs:
810
publish:
@@ -21,7 +23,7 @@ jobs:
2123
server-username: MAVEN_USERNAME
2224
server-password: MAVEN_PASSWORD
2325
- name: Publish to Hycraft Nexus
24-
run: mvn --batch-mode deploy
26+
run: mvn --batch-mode deploy -Ppublish
2527
env:
2628
MAVEN_USERNAME: ${{ secrets.NEXUS_USERNAME }}
2729
MAVEN_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}

0 commit comments

Comments
 (0)