Added keystore download option.

This commit is contained in:
2025-07-11 18:49:15 -07:00
parent 64263d5fad
commit ef90c35fc3

View File

@@ -34,6 +34,10 @@ inputs:
sshPrivateKey: sshPrivateKey:
description: "Private SSH key to use for git package restoration." description: "Private SSH key to use for git package restoration."
required: false required: false
downloadKeystore:
description: "Whether or not to download the keystore for Android builds. Defaults to true if the platform is android."
required: false
default: ""
runs: runs:
using: "composite" using: "composite"
steps: steps:
@@ -43,7 +47,27 @@ runs:
PROJECT_PATH=${{ inputs.projectPath }} PROJECT_PATH=${{ inputs.projectPath }}
PROJECT_PATH=${PROJECT_PATH// /\\ } PROJECT_PATH=${PROJECT_PATH// /\\ }
echo "projectPath=$PROJECT_PATH" >> "$GITHUB_OUTPUT" echo "projectPath=$PROJECT_PATH" >> "$GITHUB_OUTPUT"
DOWNLOAD_KEYSTORE=${{ inputs.downloadKeystore }}
if [ -z "$DOWNLOAD_KEYSTORE" ]; then
if [[ "${{ inputs.platform }}" = "android" ]]; then
DOWNLOAD_KEYSTORE=true
else
DOWNLOAD_KEYSTORE=false
fi
fi
echo "downloadKeystore=$DOWNLOAD_KEYSTORE" >> "$GITHUB_OUTPUT"
shell: bash shell: bash
- name: "Download Keystore"
if: ${{ steps.path.outputs.downloadKeystore == 'true' }}
uses: act/common/minio/mc-cp@master
with:
alias: minio
target: minio/artifacts/studiowhy.keystore
dest: ${{ steps.path.outputs.projectPath }}/studiowhy.keystore
accessKey: ${{ secrets.MINIO_ACCESS_KEY }}
secretKey: ${{ secrets.MINIO_SECRET_KEY }}
url: ${{ secrets.MINIO_URL }}
- name: "Get Unity Version." - name: "Get Unity Version."
id: getVersion id: getVersion
uses: act/unity/unity-get-version@master uses: act/unity/unity-get-version@master