Drop snapshot releases in favour of nightlies (#2340)
This commit is contained in:
parent
e2573bd67e
commit
23492a50af
3 changed files with 18 additions and 77 deletions
39
.github/workflows/publish.yml
vendored
39
.github/workflows/publish.yml
vendored
|
@ -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 }}
|
|
@ -23,7 +23,7 @@
|
|||
<version>999-SNAPSHOT</version>
|
||||
<name>Keycloak Administration UI</name>
|
||||
<description>Keycloak Administration UI</description>
|
||||
|
||||
|
||||
<properties>
|
||||
<jboss.repo.nexusUrl>https://s01.oss.sonatype.org/</jboss.repo.nexusUrl>
|
||||
<jboss.releases.repo.id>jboss-releases-repository</jboss.releases.repo.id>
|
||||
|
@ -41,15 +41,15 @@
|
|||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
|
||||
<url>http://keycloak.org</url>
|
||||
|
||||
|
||||
<url>http://keycloak.org</url>
|
||||
|
||||
<scm>
|
||||
<connection>scm:git:git://github.com/keycloak/keycloak-admin-ui.git</connection>
|
||||
<developerConnection>scm:git:git@github.com:keycloak/keycloak-admin-ui.git</developerConnection>
|
||||
<url>https://github.com/keycloak/keycloak-admin-ui/tree/master/</url>
|
||||
</scm>
|
||||
|
||||
</scm>
|
||||
|
||||
<developers>
|
||||
<developer>
|
||||
<id>keycloak</id>
|
||||
|
@ -59,36 +59,18 @@
|
|||
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>github</id>
|
||||
<name>GitHub Packages</name>
|
||||
<url>https://maven.pkg.github.com/keycloak/keycloak-admin-ui</url>
|
||||
<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>
|
||||
<name>JBoss Snapshots Repository</name>
|
||||
<url>${jboss.snapshots.repo.url}</url>
|
||||
</snapshotRepository>
|
||||
</distributionManagement>
|
||||
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>nexus-staging</id>
|
||||
<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>
|
||||
<name>JBoss Snapshots Repository</name>
|
||||
<url>${jboss.snapshots.repo.url}</url>
|
||||
</snapshotRepository>
|
||||
</distributionManagement>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.sonatype.plugins</groupId>
|
||||
<artifactId>nexus-staging-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>gpg</id>
|
||||
<build>
|
||||
|
@ -113,8 +95,6 @@
|
|||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
@ -136,7 +116,7 @@
|
|||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
|
||||
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-clean-plugin</artifactId>
|
||||
|
@ -258,7 +238,7 @@
|
|||
</script>
|
||||
</body>
|
||||
]]>
|
||||
</value>
|
||||
</value>
|
||||
</replacement>
|
||||
</replacements>
|
||||
|
||||
|
|
|
@ -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:"
|
||||
|
|
Loading…
Reference in a new issue