Maven Release #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Description | |
# ----------- | |
# This workflow builds and releases the maven artifact | |
# | |
# Setup | |
# ----- | |
# 1. Create the following secrets inside GitHub: | |
# - LMS_GIT_CONFIG (Base64 encoded .gitconfig file) | |
name: Maven Release | |
on: | |
workflow_dispatch: | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup git and other necessary files | |
run: | | |
echo -n '${{ secrets.LMS_GIT_CONFIG }}' | base64 -d > ~/.gitconfig | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
cache: maven | |
- name: Release prepare/perform | |
run: mvn clean release:prepare release:perform -B |