Skip to content

Commit

Permalink
Nightly release PoC
Browse files Browse the repository at this point in the history
Signed-off-by: stianst <stianst@gmail.com>
  • Loading branch information
stianst authored and mposolda committed Jul 25, 2024
1 parent 10d37a7 commit 1613c21
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 5 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 8 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
<jakarta.activation-api.version>2.1.2</jakarta.activation-api.version>

<jboss.repo.nexusUrl>https://s01.oss.sonatype.org/</jboss.repo.nexusUrl>
<jboss.releases.repo.id>jboss-releases-repository</jboss.releases.repo.id>
<jboss.releases.repo.id>ossrh</jboss.releases.repo.id>
<jboss.releases.repo.url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</jboss.releases.repo.url>
<jboss.snapshots.repo.id>jboss-snapshots-repository</jboss.snapshots.repo.id>
<jboss.snapshots.repo.id>ossrh</jboss.snapshots.repo.id>
<jboss.snapshots.repo.url>https://s01.oss.sonatype.org/content/repositories/snapshots/</jboss.snapshots.repo.url>

<project.build-time>${timestamp}</project.build-time>
Expand Down Expand Up @@ -101,22 +101,25 @@
</licenses>

<scm>
<connection>scm:git:git://github.com/keycloak/keycloak.git</connection>
<connection>scm:git:git://github.com/keycloak/keycloak-client.git</connection>
<developerConnection>scm:git:git@github.com:keycloak/keycloak-client-libs.git</developerConnection>
<url>https://github.com/keycloak/keycloak-client-libs/tree/master/</url>
</scm>

<distributionManagement>
<repository>
<id>${jboss.releases.repo.id}</id>
<name>JBoss Releases Repository</name>
<url>${jboss.releases.repo.url}</url>
</repository>
<snapshotRepository>
<id>${jboss.snapshots.repo.id}</id>
<url>${jboss.snapshots.repo.url}</url>
</snapshotRepository>
</distributionManagement>

<issueManagement>
<system>JIRA</system>
<url>https://github.com/keycloak/keycloak/issues</url>
<url>https://github.com/keycloak/keycloak-client/issues</url>
</issueManagement>

<developers>
Expand Down

0 comments on commit 1613c21

Please sign in to comment.