Bump com.google.protobuf:protobuf-java from 4.28.1 to 4.28.2 (#186) #31
Workflow file for this run
This file contains 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: Gradle Publish | |
on: | |
push: | |
tags: | |
- v* | |
workflow_dispatch: {} # support manual runs | |
permissions: | |
contents: write | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache Go Modules | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cache/go-build | |
~/go/pkg/mod | |
key: ${{ runner.os }}-gomod-ci-${{ hashFiles('gradle.properties', 'gradle/libs.versions.toml') }} | |
restore-keys: | |
${{ runner.os }}-gomod-ci- | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- uses: bufbuild/buf-action@v1 | |
with: | |
setup_only: true | |
- env: | |
BUF_TOKEN: ${{ secrets.BUF_TOKEN }} | |
run: echo ${BUF_TOKEN} | buf registry login buf.build --token-stdin | |
- name: Validate Gradle Wrapper | |
uses: gradle/actions/wrapper-validation@v4 | |
- name: Configure GPG signing & publish | |
env: | |
GPG_KEY: ${{ secrets.GPG_KEY }} | |
GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }} | |
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
SONATYPE_USER: ${{ secrets.SONATYPE_USER }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
run: | | |
export ORG_GRADLE_PROJECT_mavenCentralUsername=$SONATYPE_USER | |
export ORG_GRADLE_PROJECT_mavenCentralPassword=$SONATYPE_PASSWORD | |
export ORG_GRADLE_PROJECT_signingInMemoryKeyPassword=$GPG_PASSPHRASE | |
release_version=$(git describe --tags --abbrev=0 --exact-match) | |
export ORG_GRADLE_PROJECT_releaseVersion="${release_version:1}" | |
# https://github.com/keybase/keybase-issues/issues/2798 | |
export GPG_TTY=$(tty) | |
# Import gpg keys and warm the passphrase to avoid the gpg | |
# passphrase prompt when initiating a deploy | |
# `--pinentry-mode=loopback` could be needed to ensure we | |
# suppress the gpg prompt | |
echo $GPG_KEY | base64 --decode > signing-key | |
gpg --passphrase $GPG_PASSPHRASE --batch --import signing-key | |
export ORG_GRADLE_PROJECT_signingInMemoryKey=$(gpg --armor --passphrase $GPG_PASSPHRASE --pinentry-mode=loopback --export-secret-keys $GPG_KEY_NAME signing-key | grep -v '\-\-' | grep -v '^=.' | tr -d '\n') | |
shred signing-key | |
make release |