ci: fix ci configurations

This commit is contained in:
Zihlu Wang
2024-04-29 16:56:33 +08:00
parent 6596291f3d
commit cafcbd1a0f
@@ -37,10 +37,13 @@ jobs:
run: echo ${{ secrets.GPG_PASSPHRASE }} | gpg --batch --yes --pinentry-mode loopback --passphrase-fd 0 --export-secret-keys -o gpg_key.ring
- name: Restore gradle.properties
env:
GRADLE_PROPERTIES: ${{ secrets.GRADLE_PROPERTIES }}
shell: bash
run: |
mkdir -p ~/.gradle/
export GRADLE_USER_HOME=~/.gradle
echo ${{ secrets.GRADLE_PROPERTIES }} > ~/.gradle/gradle.properties
echo "GRADLE_USER_HOME=${HOME}/.gradle" >> $GITHUB_ENV
echo "${GRADLE_PROPERTIES}" > ~/.gradle/gradle.properties
- name: Set up JDK 17
uses: actions/setup-java@v4