diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..3da7be2 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,32 @@ +name: Keycloak Client Nightly Release + +on: + schedule: + - cron: '0 2 * * *' + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 17 + server-id: ossrh + server-username: MAVEN_USERNAME + server-password: MAVEN_PASSWORD + gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} + gpg-passphrase: MAVEN_GPG_PASSPHRASE + + - name: Deploy to Maven + env: + MAVEN_USERNAME: ${{ secrets.MVN_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.MVN_TOKEN }} + MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + run: | + mvn -nsu -B -Pgpg,jboss-release -DskipTests -DretryFailedDeploymentCount=10 -DautoReleaseAfterClose=false deploy diff --git a/pom.xml b/pom.xml index 8867751..445329d 100644 --- a/pom.xml +++ b/pom.xml @@ -50,9 +50,9 @@ 2.1.2 https://s01.oss.sonatype.org/ - jboss-releases-repository + ossrh https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ - jboss-snapshots-repository + ossrh https://s01.oss.sonatype.org/content/repositories/snapshots/ ${timestamp} @@ -101,7 +101,7 @@ - scm:git:git://github.com/keycloak/keycloak.git + scm:git:git://github.com/keycloak/keycloak-client.git scm:git:git@github.com:keycloak/keycloak-client-libs.git https://github.com/keycloak/keycloak-client-libs/tree/master/ @@ -109,14 +109,17 @@ ${jboss.releases.repo.id} - JBoss Releases Repository ${jboss.releases.repo.url} + + ${jboss.snapshots.repo.id} + ${jboss.snapshots.repo.url} + JIRA - https://github.com/keycloak/keycloak/issues + https://github.com/keycloak/keycloak-client/issues