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 }}
|
|
@ -57,17 +57,6 @@
|
|||
</developer>
|
||||
</developers>
|
||||
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>github</id>
|
||||
<name>GitHub Packages</name>
|
||||
<url>https://maven.pkg.github.com/keycloak/keycloak-admin-ui</url>
|
||||
</repository>
|
||||
</distributionManagement>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>nexus-staging</id>
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>${jboss.releases.repo.id}</id>
|
||||
|
@ -80,15 +69,8 @@
|
|||
<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>
|
||||
|
||||
<profiles>
|
||||
<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>
|
||||
|
||||
|
|
|
@ -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