diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6628880..81cb82f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,3 +22,7 @@ jobs: - name: List JAR run: | ls app/build/libs/ + - name: Publish package + run: ./gradlew publish + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/app/build.gradle b/app/build.gradle index 5d80c25..204e9bd 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -6,10 +6,12 @@ plugins { id 'java' + id 'maven-publish' } -group 'com.keycloak' +group 'com.authsignal' version '1.0.0' +name 'authsignal-keycloak' repositories { mavenCentral() @@ -32,3 +34,16 @@ jar { ) } } + +publishing { + repositories { + maven { + name = "GitHubPackages" + url = "https://maven.pkg.github.com/authsignal/authsignal-keycloak" + credentials { + username = System.getenv("GITHUB_ACTOR") + password = System.getenv("GITHUB_TOKEN") + } + } + } +} diff --git a/app/src/test/java/org/example/app/MessageUtilsTest.java b/app/src/test/java/org/example/app/MessageUtilsTest.java deleted file mode 100644 index 79a561d..0000000 --- a/app/src/test/java/org/example/app/MessageUtilsTest.java +++ /dev/null @@ -1,11 +0,0 @@ -/* - * This source file was generated by the Gradle 'init' task - */ -package org.example.app; - -class MessageUtilsTest { - // @Test - // void testGetMessage() { - // // No tests needed - // } -}