i-Cell-Mobilsoft-Open-Source / coffee

Coff:ee - JakartaEE solution set
http://i-cell-mobilsoft-open-source.github.io/coffee/
Apache License 2.0
22 stars 13 forks source link

Update release workflow #701

Closed speter555 closed 1 month ago

speter555 commented 2 months ago

Use that in .github/workflows/manual-RELEASE.yml

name: manual-RELEASE

on:
  workflow_dispatch:
    # Inputs the workflow accepts.
    inputs:
      comment:
        # Friendly description to be shown in the UI instead of 'name'
        description: 'Comment for release'
        # Default value if no value is explicitly provided
        default: 'Start release from WEB UI'
        # Input has to be provided for the workflow to run
        required: true
jobs:

  mvn-release:
    runs-on: ubuntu-latest
    # run only on main
    if: contains('["rombow","czenczl","petrenyi-mark","speter555","bucherarnold"]', github.actor)

    steps:
      - name: Release
        uses: speter555/gh-action-mvn-release-main@v0.31.0
        with:
          GITHUB_TOKEN: '${{ secrets.GH_TOKEN_TECHUSER_JAVA }}'
          ARTIFACT_STORE_SERVER_ID: 'ossrh'
          SETTINGS_XML_PATH: '.github/.m2/settings.xml'
          GPG_KEY_ID_GITHUB_TECHUSER: '${{ secrets.GPG_KEY_ID_GITHUB_TECHUSER }}'
          GPG_SIGNING_KEY_GITHUB_TECHUSER: '${{ secrets.GPG_SIGNING_KEY_GITHUB_TECHUSER }}'
          SSH_PRIVATE_KEY_GITHUB_TECHUSER: '${{ secrets.SSH_PRIVATE_KEY_GITHUB_TECHUSER }}'
          TECH_USER_USERNAME: 'icellmobilsoft-robot'
          TECH_USER_EMAIL: 'github_techuser@icellmobilsoft.hu'
          NEXUS_USER: '${{ secrets.OSS_SONATYPE_ORG_USER }}'
          NEXUS_PASSWORD: '${{ secrets.OSS_SONATYPE_ORG_PASSWORD }}'
          JAVA_VERSION: '17'
          JAVA_DISTRIBUTION: 'temurin'