Update Required Temporal Java SDK version in Spring AI README to next… #670
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: Publish snapshot | |
| defaults: | |
| run: | |
| shell: bash -euo pipefail -O nullglob {0} | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| dry_run: | |
| description: 'Dry run' | |
| required: true | |
| default: true | |
| type: boolean | |
| push: | |
| branches: | |
| - 'main' | |
| - 'master' | |
| paths-ignore: | |
| - 'releases/**' | |
| - 'docker/buildkite/**' | |
| - '.buildkite/**' | |
| - '.github/**' | |
| tags-ignore: | |
| - 'v*' | |
| permissions: | |
| contents: read | |
| jobs: | |
| publish-snapshot: | |
| if: github.repository == 'temporalio/sdk-java' || github.event_name == 'workflow_dispatch' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Java | |
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5 | |
| with: | |
| java-version: '23' | |
| distribution: 'temurin' | |
| - name: Set up Gradle | |
| uses: gradle/actions/setup-gradle@ac396bf1a80af16236baf54bd7330ae21dc6ece5 # v6 | |
| # Prefer env variables here rather than inline ${{ secrets.FOO }} to | |
| # decrease the likelihood that secrets end up printed to stdout. | |
| - name: Set up publishing secrets | |
| run: | | |
| base64 -d > "$HOME/secring.gpg" <<<"$KEY" | |
| printf "signing.keyId = %s\n" "$KEY_ID" >> gradle.properties | |
| printf "signing.password = %s\n" "$KEY_PASSWORD" >> gradle.properties | |
| printf "signing.secretKeyRingFile = %s\n" "$HOME/secring.gpg" >> gradle.properties | |
| printf "ossrhUsername = %s\n" "$RH_USER" >> gradle.properties | |
| printf "ossrhPassword = %s\n" "$RH_PASSWORD" >> gradle.properties | |
| env: | |
| KEY: ${{ secrets.JAR_SIGNING_KEY }} | |
| KEY_PASSWORD: ${{ secrets.JAR_SIGNING_KEY_PASSWORD }} | |
| KEY_ID: ${{ secrets.JAR_SIGNING_KEY_ID }} | |
| RH_USER: ${{ secrets.RH_USER }} | |
| RH_PASSWORD: ${{ secrets.RH_PASSWORD }} | |
| - name: Dry run | |
| if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.dry_run == 'true' }} | |
| run: ./gradlew --dry-run publishToSonatype | |
| - name: Publish | |
| if: ${{ github.event_name == 'push' || github.event.inputs.dry_run == 'false' }} | |
| run: ./gradlew publishToSonatype |