2021-09-08 15:50:48 +00:00
|
|
|
name: Publish package
|
|
|
|
on:
|
|
|
|
push:
|
2021-11-02 08:04:43 +00:00
|
|
|
branches: [main]
|
2021-09-08 15:50:48 +00:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: keycloak-theme
|
|
|
|
jobs:
|
|
|
|
publish:
|
2021-09-16 13:35:06 +00:00
|
|
|
if: github.repository_owner == 'keycloak'
|
2021-09-08 15:50:48 +00:00
|
|
|
runs-on: ubuntu-latest
|
2021-09-24 13:47:36 +00:00
|
|
|
permissions:
|
2021-09-08 15:50:48 +00:00
|
|
|
contents: read
|
2021-09-24 13:47:36 +00:00
|
|
|
packages: write
|
2021-09-08 15:50:48 +00:00
|
|
|
steps:
|
2021-09-24 13:47:36 +00:00
|
|
|
- name: Check out Admin UI
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Set up Java
|
|
|
|
uses: actions/setup-java@v2
|
2021-09-08 15:50:48 +00:00
|
|
|
with:
|
2021-09-24 13:47:36 +00:00
|
|
|
distribution: temurin
|
2021-09-08 15:50:48 +00:00
|
|
|
java-version: 11
|
2021-09-24 13:47:36 +00:00
|
|
|
check-latest: true
|
|
|
|
cache: maven
|
|
|
|
|
2021-11-25 16:37:03 +00:00
|
|
|
- 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
|
2021-09-08 15:50:48 +00:00
|
|
|
env:
|
2021-09-24 13:47:36 +00:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|