Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Commit

Permalink
revert(CI): revert "Decode keystore directly"
Browse files Browse the repository at this point in the history
  • Loading branch information
HuanCheng65 committed Feb 2, 2024
1 parent a899a5f commit 6b5b221
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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
Expand Down

0 comments on commit 6b5b221

Please sign in to comment.