Release #67
Workflow file for this run
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: Release | |
on: | |
workflow_dispatch: | |
inputs: | |
branch: | |
description: Release branch (needed for major and minor releases) | |
required: true | |
version: | |
description: Release version | |
required: true | |
deploy-skip: | |
description: Skip artifacts maven repository deployment (maven.deploy.skip) | |
required: true | |
default: false | |
type: boolean | |
env: | |
mvn-releases-url: https://s01.oss.sonatype.org/service/local/repositories/releases/content/ | |
mvn-snapshots-url: https://s01.oss.sonatype.org/content/repositories/snapshots/ | |
concurrency: rel-${{ github.ref }} | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
repo-prep: | |
name: Prepare repository | |
runs-on: ubuntu-latest | |
steps: | |
- name: Show-inputs | |
run: | | |
echo "Version: ${{ inputs.version }} " >> $GITHUB_STEP_SUMMARY | |
echo "Release branch: ${{ inputs.branch }} " >> $GITHUB_STEP_SUMMARY | |
echo "Workflow branch: ${{ github.ref_name }} " >> $GITHUB_STEP_SUMMARY | |
echo "Deploy skip: ${{ inputs.deploy-skip }} " >> $GITHUB_STEP_SUMMARY | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ inputs.branch }} | |
- name: Create version change commit | |
run: | | |
./set-version.sh ${{ inputs.version }} | |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --global user.name "github-actions[bot]" | |
git commit -a -m "Set version to ${{ inputs.version }}" | |
- name: Create tag commit | |
run: git tag --force ${{ inputs.version }} | |
- name: Push tag with version changes | |
run: git push --force origin refs/tags/${{ inputs.version }} | |
keycloak-client: | |
name: Keycloak Client | |
needs: repo-prep | |
uses: ./.github/workflows/x-keycloak-client.yml | |
with: | |
mvn-url: https://s01.oss.sonatype.org/service/local/repositories/releases/content/ | |
tag: ${{ inputs.version }} | |
deploy-skip: ${{ inputs.deploy-skip }} | |
secrets: | |
MVN_USERNAME: ${{ secrets.MVN_USERNAME }} | |
MVN_TOKEN: ${{ secrets.MVN_TOKEN }} | |
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} |