-
Notifications
You must be signed in to change notification settings - Fork 128
41 lines (37 loc) · 1.1 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# 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"]'