Skip to content

Manual Release

Manual Release #5

Workflow file for this run

name: Manual Release
on:
workflow_dispatch:
inputs:
module:
description: 'Select the module to release'
required: true
type: choice
options:
- expediagroup-sdk-core
- expediagroup-sdk-graphql
- expediagroup-sdk-rest
- expediagroup-sdk-transport-okhttp
- expediagroup-sdk-openapi-plugin
permissions:
contents: write
jobs:
get-version-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'
java-package: jdk
server-id: central
server-username: ${{ secrets.SONATYPE_USERNAME }}
server-password: ${{ secrets.SONATYPE_PASSWORD }}
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}
settings-path: ${{ github.workspace }}
- name: Build and Test
run: ./gradlew clean build
- name: Publish ${{ inputs.module }}
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}
GPG_SECRET: ${{ secrets.GPG_PRIVATE_KEY }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
run: |
echo "Publishing ${{ inputs.module }}"
./gradlew :${{ inputs.module }}:publishToSonatype closeAndReleaseSonatypeStagingRepository
- name: Publish Summary
run: |
echo "✅ Successfully published ${{ inputs.module }} to Maven Central" >> $GITHUB_STEP_SUMMARY