keycloak-scim/.github/workflows/publish.yml
2021-11-02 09:04:43 +01:00

30 lines
669 B
YAML

name: Publish package
on:
push:
branches: [main]
defaults:
run:
working-directory: keycloak-theme
jobs:
publish:
if: github.repository_owner == 'keycloak'
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Check out Admin UI
uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 11
check-latest: true
cache: maven
- name: Build and deploy Admin UI
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}