Skip to content

Publish

Publish #502

Workflow file for this run

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Publish
on:
push:
branches: [ main ]
schedule:
- cron: '0 2 * * *'
workflow_dispatch:
jobs:
build:
concurrency: publish-to-website
if: github.repository == 'keycloak/keycloak-web'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build with Maven
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: mvn -s mvn-rel-settings.xml package -Dpublish
- name: Install SSH Client 🔑
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.DEPLOY_KEY }}
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
SSH: true
REPOSITORY_NAME: keycloak/keycloak.github.io
BRANCH: main
FOLDER: target/web
CLEAN: true
CLEAN_EXCLUDE: '["docs", "docs-api"]'