Skip to content

Commit

Permalink
Adjust gradle user home path in release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sonologico committed Oct 20, 2022
1 parent 0e1ebb0 commit 351bdf1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,18 @@ jobs:
- name: Create gradle.properties
shell: bash
run: |
mkdir -p ~/.gradle/
echo "GRADLE_USER_HOME=${HOME}/.gradle" >> $GITHUB_ENV
cat <<FILE > ~/.gradle/gradle.properties
mkdir -p _gradle_user_home
echo "GRADLE_USER_HOME=_gradle_user_home" >> $GITHUB_ENV
cat <<FILE > _gradle_user_home/gradle.properties
github.username=${{ secrets.PUSHER_CI_GITHUB_PRIVATE_TOKEN }}
github.password=""
maven.username=${{ secrets.MAVEN_USERNAME }}
maven.password=${{ secrets.MAVEN_PASSWORD }}
signing.keyId=${{ secrets.SIGNING_KEY_ID }}
signing.password=${{ secrets.SIGNING_PASSWORD }}
signing.secretKeyRingFile=~/.gradle/pusher-maven-gpg-signing-key.gpg
signing.secretKeyRingFile=_gradle_user_home/pusher-maven-gpg-signing-key.gpg
FILE
echo "${{ secrets.PUSHER_MAVEN_GPG_SIGNING_KEY }}" | base64 --decode > ~/.gradle/pusher-maven-gpg-signing-key.gpg
echo "${{ secrets.PUSHER_MAVEN_GPG_SIGNING_KEY }}" | base64 --decode > _gradle_user_home/pusher-maven-gpg-signing-key.gpg
- name: Publish
run: |
./gradlew publish

0 comments on commit 351bdf1

Please sign in to comment.