Skip to content

Commit

Permalink
Fix publish to GitHub packages
Browse files Browse the repository at this point in the history
  • Loading branch information
bedrin committed Oct 7, 2020
1 parent 5df4880 commit c3e82f9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ jobs:
with:
java-version: 1.8
- name: Publish to GitHub Packages
run: mvn -P release -B deploy
run: mvn -P github,release -B deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ github.token }}
31 changes: 20 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,26 @@
</plugin>
</plugins>
</build>
<distributionManagement>
<snapshotRepository>
<id>sonatype-nexus-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>sonatype-nexus-snapshots</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
</profile>
<profile>
<id>github</id>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub kerb4j Apache Maven Packages</name>
<url>https://maven.pkg.github.com/bedrin/kerb4j</url>
</repository>
</distributionManagement>
</profile>
<profile>
<id>release</id>
Expand All @@ -294,15 +314,4 @@
</profile>
</profiles>

<distributionManagement>
<snapshotRepository>
<id>sonatype-nexus-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>sonatype-nexus-snapshots</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

</project>

0 comments on commit c3e82f9

Please sign in to comment.