Skip to content

Create two versions of theme: (1) w/ forms login, (2) w/o forms login (=hidden, not removed) #70

Create two versions of theme: (1) w/ forms login, (2) w/o forms login (=hidden, not removed)

Create two versions of theme: (1) w/ forms login, (2) w/o forms login (=hidden, not removed) #70

Workflow file for this run

name: ci
on:
push:
branches:
- main
tags:
- "v*.*.*"
- "v*.*.*-alpha*"
- "v*.*.*-beta*"
pull_request:
branches:
- main
defaults:
run:
working-directory: ./src
jobs:
build:
runs-on: ubuntu-latest
if: github.event.head_commit.author.name != 'actions'
steps:
- uses: actions/checkout@v4
- name: Create two versions of theme
run: |
cp -r theme/keycloak-theme-world-direct theme/keycloak-theme-world-direct-without-forms-login
sed -i '/kcFormAdditionalClass=/c\kcFormAdditionalClass=displayNone' ./theme/keycloak-theme-world-direct-without-forms-login/login/theme.properties
sed -i '/kcFormAdditionalClass/d' theme/keycloak-theme-world-direct/login/theme.properties
- name: Create jar artifact
run: |
zip -r keycloak-theme-world-direct.jar *
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: keycloak-theme-world-direct.jar
path: src/keycloak-theme-world-direct.jar
- name: Create Release when we a tag ref has been created
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
generate_release_notes: true
files: |
src/keycloak-theme-world-direct.jar