Skip to content

Commit 46ca6e3

Browse files
committed
action
1 parent 4b9608b commit 46ca6e3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/package.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
78
jobs:
89
publish:
910
runs-on: ubuntu-latest
@@ -39,8 +40,11 @@ jobs:
3940
run: mvn -B package --file pom.xml
4041
shell: bash
4142

43+
4244
- name: Deploy to GitHub Package Registry
43-
run: mvn --batch-mode deploy
45+
run: |
46+
REPO="github::default::https://maven.pkg.github.com/${{github.repository}}"
47+
mvn -B deploy -DaltReleaseDeploymentRepository="${REPO}"
4448
shell: bash
4549
env:
4650
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)