Skip to content

Commit cafcbd1

Browse files
committed
ci: fix ci configurations
1 parent 6596291 commit cafcbd1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/github-packages-publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,13 @@ jobs:
3737
run: echo ${{ secrets.GPG_PASSPHRASE }} | gpg --batch --yes --pinentry-mode loopback --passphrase-fd 0 --export-secret-keys -o gpg_key.ring
3838

3939
- name: Restore gradle.properties
40+
env:
41+
GRADLE_PROPERTIES: ${{ secrets.GRADLE_PROPERTIES }}
42+
shell: bash
4043
run: |
4144
mkdir -p ~/.gradle/
42-
export GRADLE_USER_HOME=~/.gradle
43-
echo ${{ secrets.GRADLE_PROPERTIES }} > ~/.gradle/gradle.properties
45+
echo "GRADLE_USER_HOME=${HOME}/.gradle" >> $GITHUB_ENV
46+
echo "${GRADLE_PROPERTIES}" > ~/.gradle/gradle.properties
4447
4548
- name: Set up JDK 17
4649
uses: actions/setup-java@v4

0 commit comments

Comments
 (0)