Skip to content

Commit

Permalink
build: relocate gradle.properties
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanvc committed Sep 30, 2023
1 parent 730f30f commit 39e8f07
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,18 @@ jobs:
distribution: 'temurin'
- name: Load keystore
run: |
mkdir -p ~/.gradle && \
echo "${{ secrets.KEYSTORE_FILE_CONTENTS }}" | base64 -d > ~/.gradle/keystore && \
cat <<EOL > ~/.gradle/gradle.properties
RELEASE_STORE_FILE=~/.gradle/keystore
mkdir gradle-config && \
echo "${{ secrets.KEYSTORE_FILE_CONTENTS }}" | base64 -d > gradle-config/keystore && \
cat <<EOL > gradle-config/gradle.properties
RELEASE_STORE_FILE=$PWD/gradle-config/keystore
RELEASE_STORE_PASSWORD=${{ secrets.RELEASE_STORE_PASSWORD }}
RELEASE_KEY_ALIAS=${{ secrets.RELEASE_KEY_ALIAS }}
RELEASE_KEY_PASSWORD=${{ secrets.RELEASE_KEY_PASSWORD }}
EOL
- name: Build Release APK
run: GRADLE_USER_HOME=~/.gradle ./gradlew assembleRelease
run: ./gradlew assembleRelease
env:
GRADLE_USER_HOME: ./gradle-config
- name: Set current directory as a safe repository
run: git config --global --add safe.directory /github/workspace
- uses: ButterCam/setup-github-cli@master
Expand Down

0 comments on commit 39e8f07

Please sign in to comment.