Removed Fraunhofer repository #10
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
name: Master release | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
releaseVersion: | ||
description: 'Release and tag version (ie 5.5.0)' | ||
required: true | ||
developmentVersion: | ||
decription: 'Next development version, with SNAPSHOT' | ||
required: true | ||
jobs: | ||
master_release: | ||
if: "!contains(github.event.head_commit.message, '[maven-release-plugin]')" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
distribution: 'temurin' | ||
cache: maven | ||
- name: Initialize mandatory git config | ||
run: | | ||
git config user.name "GitHub Actions" | ||
git config user.email [email protected] | ||
- name: ssh-agent | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_KEY }} | ||
- name: Install maven dependencies | ||
run: ./ci/mavenDependency.sh | ||
- name: Release with Maven | ||
env: | ||
GITHUB_USERNAME: ${{ github.actor }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GH_PACKAGE_REPO_PASSWORD: ${{ secrets.GH_PACKAGE_REPO_PASSWORD }} | ||
run: | | ||
mvn -B -Dtag=${{ github.event.inputs.releaseVersion }} release:prepare \ | ||
-DreleaseVersion=${{ github.event.inputs.releaseVersion }} \ | ||
-DdevelopmentVersion=${{ github.event.inputs.developmentVersion }} --file pom.xml \ | ||
&& mvn release:perform -B --file pom.xml | ||
- name: Create A Pull Request | ||
uses: thomaseizinger/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
head: master | ||
base: develop | ||
title: Released master into develop | ||
body: | | ||
Hi! | ||
This PR was created in response workflow running. | ||
I've updated the version name and code commit: ${{ steps.make-commit.outputs.commit }}. |