Prune older versions of published snapshots (#1603)

This commit is contained in:
Jon Koops 2021-11-25 17:37:03 +01:00 committed by GitHub
parent d08b55ae9a
commit 177e9eb985
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,17 @@ jobs:
check-latest: true
cache: maven
- name: Build and deploy Admin UI
run: mvn --batch-mode deploy
- 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
num-old-versions-to-delete: 100
delete-only-pre-release-versions: true
- name: Publish Admin UI
run: mvn --batch-mode deploy -Dskip.npm
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}