revert(CI): revert "Decode keystore directly"

This commit is contained in:
HuanCheng65 2024-02-02 19:39:47 +08:00
parent a899a5fa0d
commit 6b5b221422
No known key found for this signature in database
GPG Key ID: 5EC9DD60A32C7360
1 changed files with 9 additions and 1 deletions

View File

@ -17,11 +17,19 @@ jobs:
distribution: "zulu"
cache: gradle
- name: Decode Keystore
id: decode_keystore
if: ${{ github.event_name != 'pull_request' || github.ref_type == 'tag' }}
uses: timheuer/base64-to-file@v1.2
with:
fileName: ${{ vars.RELEASE_KEYSTORE }}
fileDir: ${{ github.workspace }}
encodedString: ${{ secrets.KEYSTORE }}
- name: Generate keystore.properties
if: ${{ github.event_name != 'pull_request' || github.ref_type == 'tag' }}
run: |
if [ -n "${{ secrets.RELEASEKEYPASSWORD }}" ]; then
echo ${{ secrets.KEYSTORE }} | base64 --decode > ${{ vars.RELEASE_KEYSTORE }}
echo keystore.file="${{ vars.RELEASE_KEYSTORE }}" >> keystore.properties
echo keystore.password="${{ secrets.RELEASESTOREPASSWORD }}" >> keystore.properties
echo keystore.key.alias="${{ vars.RELEASE_KEY_ALIAS }}" >> keystore.properties