-
Notifications
You must be signed in to change notification settings - Fork 168
31 lines (29 loc) · 1018 Bytes
/
gradle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Build and Publish SiteMesh
on:
push:
jobs:
build-gradle-project:
runs-on: ubuntu-latest
steps:
- name: Checkout project sources
uses: actions/checkout@v3
- name: Set up JDK 17 with cache
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'
# - name: Setup Gradle
# uses: gradle/gradle-build-action@v2
- name: Restore gradle.properties
env:
GRADLE_PROPERTIES: ${{ secrets.GRADLE_PROPERTIES }}
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
shell: bash
run: |
mkdir -p ~/.gradle/
echo "${GRADLE_PROPERTIES}" > ~/.gradle/gradle.properties
echo "signing.secretKeyRingFile=${HOME}/.gradle/secring.gpg" >> ~/.gradle/gradle.properties
echo ${GPG_SIGNING_KEY} | base64 -d > ~/.gradle/secring.gpg
- name: Run build with Gradle Wrapper
run: ./gradlew test publishToSonatype