Skip to content

Commit

Permalink
+ publish to github packages
Browse files Browse the repository at this point in the history
  • Loading branch information
q3769 committed Aug 18, 2024
1 parent 214b57c commit 052aeb9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/maven-publish-github.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path

name: Maven Package
name: Maven publish github packages

on:
workflow_dispatch:
Expand Down Expand Up @@ -30,6 +30,6 @@ jobs:
run: mvn -B package --file pom.xml

- name: Publish to GitHub Packages Apache Maven
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml -Pgithub
env:
GITHUB_TOKEN: ${{ github.token }}
File renamed without changes.
11 changes: 10 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,16 @@
</repository>
</distributionManagement>
</profile>
<profile>
<id>github</id>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Apache Maven Packages</name>
<url>https://maven.pkg.github.com/q3769/conseq4j</url>
</repository>
</distributionManagement>
</profile>
</profiles>
<build>
<plugins>
Expand Down Expand Up @@ -171,7 +181,6 @@
<palantirJavaFormat>
<version>2.47.0</version>
<style>GOOGLE</style>
<!-- <style>PALANTIR</style>-->
<formatJavadoc>true</formatJavadoc>
</palantirJavaFormat>
<removeUnusedImports/>
Expand Down

0 comments on commit 052aeb9

Please sign in to comment.