Prune older versions of published snapshots (#1603)
This commit is contained in:
parent
d08b55ae9a
commit
177e9eb985
1 changed files with 12 additions and 2 deletions
14
.github/workflows/publish.yml
vendored
14
.github/workflows/publish.yml
vendored
|
@ -24,7 +24,17 @@ jobs:
|
||||||
check-latest: true
|
check-latest: true
|
||||||
cache: maven
|
cache: maven
|
||||||
|
|
||||||
- name: Build and deploy Admin UI
|
- name: Build Admin UI
|
||||||
run: mvn --batch-mode deploy
|
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:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
Loading…
Reference in a new issue