message: `release.yml`: Add Maven Steps
diff: @@ -74,4 +74,29 @@ jobs:
  run: |
  dotnet nuget push .\bin\Release\Google.FlatBuffers.*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
  + publish-maven:
  + name: Publish Maven
  + runs-on: ubuntu-latest
  + defaults:
  + run:
  + working-directory: ./java
  + steps:
  + - uses: actions/checkout@v3
  +
  + - name: Set up Maven Central Repository
  + uses: actions/setup-java@v3
  + with:
  + java-version: '11'
  + distribution: 'adopt'
  + server-id: ossrh
  + server-username: MAVEN_USERNAME
  + server-password: MAVEN_PASSWORD
  +
  + - name: Publish Maven
  + run: mvn --batch-mode clean deploy
  + env:
  + MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
  + MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
  +
  +
  