Skip to content

Commit e41dbd0

Browse files
Fixes maven-publish workflow (#6)
1 parent 0d15bfb commit e41dbd0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/maven-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ jobs:
2929
run: echo "RELEASE_VERSION=$(git describe --tags)" >> $GITHUB_ENV
3030

3131
- name: Publish to GitHub Packages Apache Maven
32-
run: mvn -B -Drevision=${{ env.RELEASE_VERSION }} -Dsha1= -Dchangelist= deploy -s ${{ github.workspace }}/settings.xml
32+
run: mvn -Ppublish-github-packages -B -Drevision=${{ env.RELEASE_VERSION }} -Dsha1= -Dchangelist= deploy -s ${{ github.workspace }}/settings.xml
3333
env:
3434
GITHUB_TOKEN: ${{ github.token }}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@
305305
<repository>
306306
<id>github</id>
307307
<name>GitHub Packages</name>
308-
<url>https://maven.pkg.github.com/teragrep/jlt_01</url>
308+
<url>https://maven.pkg.github.com/${env.GITHUB_REPOSITORY}</url>
309309
</repository>
310310
</distributionManagement>
311311
</profile>

0 commit comments

Comments
 (0)