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
|
|
|
|
|
|
|
|
- name: Build and deploy Admin UI
|
2021-09-27 14:59:20 +00:00
|
|
|
run: mvn --batch-mode deploy
|
2021-09-08 15:50:48 +00:00
|
|
|
env:
|
2021-09-24 13:47:36 +00:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|