Remove json_name annotations and prefix fields with underscore_ (#149)
#128
This file contains hidden or 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: Build and Publish Snapshots to Maven | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - 'main' | |
| jobs: | |
| build-and-publish-snapshots: | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'opensearch-project/opensearch-protobufs' | |
| permissions: | |
| id-token: write | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin # Temurin is a distribution of adoptium | |
| java-version: 21 | |
| - name: Load secret | |
| uses: 1password/load-secrets-action@v2 | |
| with: | |
| # Export loaded secrets as environment variables | |
| export-env: true | |
| env: | |
| OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} | |
| SONATYPE_USERNAME: op://opensearch-infra-secrets/maven-central-portal-credentials/username | |
| SONATYPE_PASSWORD: op://opensearch-infra-secrets/maven-central-portal-credentials/password | |
| - name: publish snapshots to maven | |
| run: | | |
| ./tools/java/package_proto_jar.sh -c true | |
| ./gradlew publishCreatePublicationToSnapshotsRepository |