Backport to branch(3.8) : Fix CosmosDB CI when running integration te… #1324
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: Release SHAPSHOT | |
on: | |
push: | |
branches: | |
- master | |
- "[0-9]+" | |
- "[0-9]+.[0-9]+" | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: Cache Gradle packages | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Set version | |
id: version | |
run: | | |
VERSION=$(./gradlew :core:properties -q | grep "version:" | awk '{print $2}') | |
echo "version=${VERSION}" >> $GITHUB_OUTPUT | |
- name: Upload SNAPSHOT versions for scalardb, scalardb-server, scalardb-rpc, scalardb-schema-loader, and scalardb-integration-test to Maven Snapshot Repository | |
if: contains(steps.version.outputs.version, '-SNAPSHOT') | |
run: | | |
echo "${{secrets.SIGNING_SECRET_KEY_RING}}" | base64 -d > ~/.gradle/secring.gpg | |
./gradlew publish \ | |
-Psigning.keyId="${{ secrets.SIGNING_KEY_ID }}" \ | |
-P'signing.password'="${{ secrets.SIGNING_PASSWORD }}" \ | |
-Psigning.secretKeyRingFile="$(echo ~/.gradle/secring.gpg)" \ | |
-PossrhUsername="${{ secrets.OSSRH_USERNAMAE }}" \ | |
-PossrhPassword="${{ secrets.OSSRH_PASSWORD }}" |