Drop snapshot releases in favour of nightlies (#2340)

This commit is contained in:
Jon Koops 2022-03-28 09:18:40 +02:00 committed by GitHub
parent e2573bd67e
commit 23492a50af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 77 deletions

View file

@ -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 }}

View file

@ -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>
@ -258,7 +238,7 @@
</script>
</body>
]]>
</value>
</value>
</replacement>
</replacements>

View file

@ -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:"