on:
  repository_dispatch:
    types: [http4k-release]
env:
  ACTIONS_ALLOW_UNSECURE_COMMANDS: true
jobs:
  Release:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Setup Java
        uses: actions/setup-java@v1
        with:
          java-version: 11
      - name: Release to Maven Central
        run: |
          ./gradlew closeAndReleaseRepository \
          -PnexusUsername="${{ secrets.NEXUS_USERNAME }}" \
          -PnexusPassword="${{ secrets.NEXUS_PASSWORD }}"

Add maven central release workflow
Add maven central release workflow
