From 23492a50af865cb76daaf0c54d9b7b887f309c75 Mon Sep 17 00:00:00 2001 From: Jon Koops Date: Mon, 28 Mar 2022 09:18:40 +0200 Subject: [PATCH] Drop snapshot releases in favour of nightlies (#2340) --- .github/workflows/publish.yml | 39 ------------------------- keycloak-theme/pom.xml | 54 +++++++++++------------------------ release.sh | 2 +- 3 files changed, 18 insertions(+), 77 deletions(-) delete mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index b99f8a280a..0000000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: Publish package -on: - push: - branches: [main] -defaults: - run: - working-directory: keycloak-theme -jobs: - publish: - if: github.repository_owner == 'keycloak' - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - steps: - - name: Check out Admin UI - uses: actions/checkout@v2 - - - name: Set up Java - uses: actions/setup-java@v2 - with: - distribution: temurin - java-version: 11 - check-latest: true - cache: maven - - - name: Build Admin UI - run: mvn --batch-mode install - - - name: Prune existing snapshots - uses: actions/delete-package-versions@v2 - with: - package-name: org.keycloak.keycloak-admin-ui - delete-only-pre-release-versions: true - - - name: Publish Admin UI - run: mvn --batch-mode deploy -Dskip.npm - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/keycloak-theme/pom.xml b/keycloak-theme/pom.xml index c3a26c3a3e..a5864f4466 100644 --- a/keycloak-theme/pom.xml +++ b/keycloak-theme/pom.xml @@ -23,7 +23,7 @@ 999-SNAPSHOT Keycloak Administration UI Keycloak Administration UI - + https://s01.oss.sonatype.org/ jboss-releases-repository @@ -41,15 +41,15 @@ repo - - http://keycloak.org - + + http://keycloak.org + scm:git:git://github.com/keycloak/keycloak-admin-ui.git scm:git:git@github.com:keycloak/keycloak-admin-ui.git https://github.com/keycloak/keycloak-admin-ui/tree/master/ - - + + keycloak @@ -59,36 +59,18 @@ - github - GitHub Packages - https://maven.pkg.github.com/keycloak/keycloak-admin-ui + ${jboss.releases.repo.id} + JBoss Releases Repository + ${jboss.releases.repo.url} + + ${jboss.snapshots.repo.id} + JBoss Snapshots Repository + ${jboss.snapshots.repo.url} + - + - - nexus-staging - - - ${jboss.releases.repo.id} - JBoss Releases Repository - ${jboss.releases.repo.url} - - - ${jboss.snapshots.repo.id} - JBoss Snapshots Repository - ${jboss.snapshots.repo.url} - - - - - - org.sonatype.plugins - nexus-staging-maven-plugin - - - - gpg @@ -113,8 +95,6 @@ - - @@ -136,7 +116,7 @@ - + maven-clean-plugin @@ -258,7 +238,7 @@ ]]> - + diff --git a/release.sh b/release.sh index 0d6f2606cd..63671de87f 100755 --- a/release.sh +++ b/release.sh @@ -7,7 +7,7 @@ echo "-------------------------------------------------------------------------- echo "Building:" echo "" -mvn --file=./keycloak-theme/pom.xml -Pnexus-staging,gpg -DretryFailedDeploymentCount=10 -DautoReleaseAfterClose=true clean deploy +mvn --file=./keycloak-theme/pom.xml -Pgpg -DretryFailedDeploymentCount=10 -DautoReleaseAfterClose=true clean deploy echo "------------------------------------------------------------------------------------------------------------" echo "Create tag:"