keycloak-scim/.github/workflows/publish.yml

41 lines
988 B
YAML
Raw Normal View History

name: Publish package
on:
push:
2021-11-02 08:04:43 +00:00
branches: [main]
defaults:
run:
working-directory: keycloak-theme
jobs:
publish:
if: github.repository_owner == 'keycloak'
runs-on: ubuntu-latest
2021-09-24 13:47:36 +00:00
permissions:
contents: read
2021-09-24 13:47:36 +00:00
packages: write
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
with:
2021-09-24 13:47:36 +00:00
distribution: temurin
java-version: 11
2021-09-24 13:47:36 +00:00
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
num-old-versions-to-delete: 100
delete-only-pre-release-versions: true
- name: Publish Admin UI
run: mvn --batch-mode deploy -Dskip.npm
env:
2021-09-24 13:47:36 +00:00
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}