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 }}
|
|
|
@ -59,36 +59,18 @@
|
||||||
|
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
<repository>
|
<repository>
|
||||||
<id>github</id>
|
<id>${jboss.releases.repo.id}</id>
|
||||||
<name>GitHub Packages</name>
|
<name>JBoss Releases Repository</name>
|
||||||
<url>https://maven.pkg.github.com/keycloak/keycloak-admin-ui</url>
|
<url>${jboss.releases.repo.url}</url>
|
||||||
</repository>
|
</repository>
|
||||||
|
<snapshotRepository>
|
||||||
|
<id>${jboss.snapshots.repo.id}</id>
|
||||||
|
<name>JBoss Snapshots Repository</name>
|
||||||
|
<url>${jboss.snapshots.repo.url}</url>
|
||||||
|
</snapshotRepository>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
|
|
||||||
<profiles>
|
<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>
|
<profile>
|
||||||
<id>gpg</id>
|
<id>gpg</id>
|
||||||
<build>
|
<build>
|
||||||
|
@ -113,8 +95,6 @@
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
<configuration>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
@ -258,7 +238,7 @@
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
]]>
|
]]>
|
||||||
</value>
|
</value>
|
||||||
</replacement>
|
</replacement>
|
||||||
</replacements>
|
</replacements>
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ echo "--------------------------------------------------------------------------
|
||||||
echo "Building:"
|
echo "Building:"
|
||||||
echo ""
|
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 "------------------------------------------------------------------------------------------------------------"
|
||||||
echo "Create tag:"
|
echo "Create tag:"
|
||||||
|
|
Loading…
Reference in a new issue