Skip to content

Commit

Permalink
publish to github pacakges
Browse files Browse the repository at this point in the history
  • Loading branch information
justinsoong committed Nov 28, 2024
1 parent 15cd667 commit c9ead64
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
17 changes: 16 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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")
}
}
}
}
11 changes: 0 additions & 11 deletions app/src/test/java/org/example/app/MessageUtilsTest.java

This file was deleted.

0 comments on commit c9ead64

Please sign in to comment.