Skip to content

maven-release

maven-release #1

Workflow file for this run

name: maven-release
on:
workflow_dispatch:
inputs:
releaseVersion:
description: "Default version to use when preparing a release."
required: true
default: "X.Y.Z"
developmentVersion:
description: "Default version to use for new local working copy."
required: true
default: "X.Y.Z-SNAPSHOT"
jobs:
release:
runs-on: ubuntu-latest
steps:
# Checkout source code, set up Java, etc. Then...
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "temurin"
cache: "maven"
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Maven Release
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
mvn release:prepare -B -Dpassword=${GITLAB_ACCESS_TOKEN_PW} -DreleaseVersion=${{ github.event.inputs.releaseVersion }} -DdevelopmentVersion=${{ github.event.inputs.developmentVersion }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}