This repository has been archived by the owner on Feb 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revert(CI): revert "Decode keystore directly"
- Loading branch information
1 parent
a899a5f
commit 6b5b221
Showing
1 changed file
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|