Prepare release 0.1.0 on 38de68e169bd6b7c136fb830c7b94903ef1d7633 by @qboileau #3
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: Prepare release | |
run-name: Prepare release ${{ inputs.version }} on ${{ github.sha }} by @${{ github.actor }} | |
on: | |
workflow_dispatch: | |
# Inputs the workflow accepts. | |
inputs: | |
version: | |
type: string | |
description: 'Release version' | |
required: false | |
next: | |
type: string | |
description: 'Next development version' | |
required: false | |
env: | |
RELEASE_VERSION: ${{ inputs.version }} | |
jobs: | |
create-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.CONDUKTORBOT_REPO_WRITE }} | |
- name: Setup GPG | |
id: gpg | |
uses: crazy-max/[email protected] | |
with: | |
gpg_private_key: ${{ secrets.CONDUKTOR_BOT_GPG_PRIVATE_KEY }} | |
git_user_signingkey: true | |
git_commit_gpgsign: true | |
git_tag_gpgsign: true | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
- name: maven-settings | |
uses: s4u/maven-settings-action@v2 | |
with: | |
servers: '[{"id": "github", "username": "conduktorbot", "password": "${{ secrets.CONDUKTORBOT_GHCR_RW }}" }]' | |
githubServer: false | |
- name: Maven release prepare | |
id: prepare | |
run: | | |
git config user.name "${{ steps.gpg.outputs.name }}" | |
git config user.email "${{ steps.gpg.outputs.email }}" | |
mvn --batch-mode release:prepare -DreleaseVersion=${{ env.RELEASE_VERSION }} -DdevelopmentVersion=${{ inputs.next }} -Dtag=${{ env.RELEASE_VERSION }} --file pom.xml | |
env: | |
GITHUB_TOKEN: ${{ secrets.CONDUKTORBOT_REPO_WRITE }} |