File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,6 +52,10 @@ inputs:
5252 keystore-key-password :
5353 description : ' Keystore key password'
5454 required : false
55+ keystore-path :
56+ description : ' Path within the Android source directory where the keystore should be placed'
57+ required : false
58+ default : ' release.keystore'
5559 comment-bot :
5660 description : ' Whether to send a comment under PR with the link to the generated build'
5761 required : false
@@ -200,10 +204,12 @@ runs:
200204 - name : Decode and store keystore file
201205 if : ${{ !env.ARTIFACT_URL && inputs.sign }}
202206 run : |
207+ KEYSTORE_TARGET_PATH="$ANDROID_SOURCE_DIR/$APP_NAME/${{ inputs.keystore-path }}"
208+ mkdir -p "$(dirname "$KEYSTORE_TARGET_PATH")"
203209 if [ -n "${{ inputs.keystore-file }}" ]; then
204- cp "${{ inputs.keystore-file }}" $ANDROID_SOURCE_DIR/$APP_NAME/release.keystore
210+ cp "${{ inputs.keystore-file }}" "$KEYSTORE_TARGET_PATH"
205211 else
206- echo "${{ inputs.keystore-base64 }}" | base64 --decode > $ANDROID_SOURCE_DIR/$APP_NAME/release.keystore
212+ echo "${{ inputs.keystore-base64 }}" | base64 --decode > "$KEYSTORE_TARGET_PATH"
207213 fi
208214 shell : bash
209215 working-directory : ${{ inputs.working-directory }}
@@ -303,7 +309,7 @@ runs:
303309 if : ${{ !env.ARTIFACT_URL && inputs.sign }}
304310 run : |
305311 rm $HOME/.gradle/gradle.properties
306- rm $ANDROID_SOURCE_DIR/$APP_NAME/release .keystore
312+ rm " $ANDROID_SOURCE_DIR/$APP_NAME/${{ inputs .keystore-path }}"
307313 shell : bash
308314 working-directory : ${{ inputs.working-directory }}
309315
You can’t perform that action at this time.
0 commit comments