Skip to content

Merge pull request #9 from mitodl/renovate/actions-checkout-4.x #5

Merge pull request #9 from mitodl/renovate/actions-checkout-4.x

Merge pull request #9 from mitodl/renovate/actions-checkout-4.x #5

name: Build ol-spi and release
on:
push:
branches:
- 'main'
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
- name: Build with Maven
run: mvn clean install
working-directory: ./ol-keycloak/ol-spi
- name: Create Release
if: startsWith(github.ref, 'refs/tags/')
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_PROJECT_AUTOMATION_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false