mirror of
https://github.com/Myzel394/Alibi.git
synced 2025-06-18 23:05:26 +02:00
refactor(ci-cd): Move prepare keystore out
This commit is contained in:
parent
b5272e8d1c
commit
c3f078879f
31
.github/actions/prepare-keystore/action.yml
vendored
Normal file
31
.github/actions/prepare-keystore/action.yml
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
name: Prepare KeyStore
|
||||||
|
description: Write the KeyStore file and properties to disk
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
signingStorePassword:
|
||||||
|
description: 'The password for the KeyStore'
|
||||||
|
required: true
|
||||||
|
signingKeyPassword:
|
||||||
|
description: 'The password for the Key'
|
||||||
|
required: true
|
||||||
|
signingKeyAlias:
|
||||||
|
description: 'The alias for the Key'
|
||||||
|
required: true
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: composite
|
||||||
|
steps:
|
||||||
|
- name: Write Keystore file 🗄️
|
||||||
|
id: android_keystore
|
||||||
|
uses: timheuer/base64-to-file@v1.0.3
|
||||||
|
with:
|
||||||
|
fileName: key.jks
|
||||||
|
encodedString: ${{ secrets.KEYSTORE }}
|
||||||
|
|
||||||
|
- name: Write Keystore properties 🗝️
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "storeFile=${{ steps.android_keystore.outputs.filePath }}" > key.properties
|
||||||
|
echo "storePassword=${{ inputs.signingStorePassword }}" >> key.properties
|
||||||
|
echo "keyPassword=${{ inputs.signingKeyPassword }}" >> key.properties
|
||||||
|
echo "keyAlias=${{ inputs.signingKeyAlias }}" >> key.properties
|
@ -12,19 +12,12 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Write Keystore file 🗄️
|
- name: Write KeyStore 🗝️
|
||||||
id: android_keystore
|
uses: ./.github/actions/prepare-keystore
|
||||||
uses: timheuer/base64-to-file@v1.0.3
|
|
||||||
with:
|
with:
|
||||||
fileName: key.jks
|
signingStorePassword: ${{ secrets.SIGNING_STORE_PASSWORD }}
|
||||||
encodedString: ${{ secrets.KEYSTORE }}
|
signingKeyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }}
|
||||||
|
signingKeyAlias: ${{ secrets.SIGNING_KEY_ALIAS }}
|
||||||
- name: Write Keystore properties 🗝️
|
|
||||||
run: |
|
|
||||||
echo "storeFile=${{ steps.android_keystore.outputs.filePath }}" > key.properties
|
|
||||||
echo "storePassword=${{ secrets.SIGNING_STORE_PASSWORD }}" >> key.properties
|
|
||||||
echo "keyPassword=${{ secrets.SIGNING_KEY_PASSWORD }}" >> key.properties
|
|
||||||
echo "keyAlias=${{ secrets.SIGNING_KEY_ALIAS }}" >> key.properties
|
|
||||||
|
|
||||||
- name: Setup Java
|
- name: Setup Java
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
Loading…
x
Reference in New Issue
Block a user