Skip to content

Commit

Permalink
gradle settings for build
Browse files Browse the repository at this point in the history
  • Loading branch information
leoromanovsky committed Oct 21, 2023
1 parent f72a3bc commit 16dac92
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/test-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v1

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
java-version: '11'
distribution: 'adopt'

- name: Restore gradle.properties
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
shell: bash
run: |
mkdir -p ~/.gradle/
echo "GRADLE_USER_HOME=${HOME}/.gradle" >> $GITHUB_ENV
echo "MAVEN_USERNAME=${MAVEN_USERNAME}" > ~/.gradle/gradle.properties
echo "MAVEN_PASSWORD=${MAVEN_PASSWORD}" >> ~/.gradle/gradle.properties
- name: Build with Gradle
run: ./gradlew build

Expand Down

0 comments on commit 16dac92

Please sign in to comment.