-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
36 deletions.
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 |
---|---|---|
|
@@ -10,6 +10,12 @@ jobs: | |
|
||
runs-on: ubuntu-latest | ||
|
||
env: | ||
KEY_ALIAS: ${{ secrets.KEY_ALIAS }} | ||
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }} | ||
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} | ||
BASE_URL: ${{secrets.BASE_URL}} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: set up JDK 17 | ||
|
@@ -28,46 +34,26 @@ jobs: | |
shell: bash | ||
env: | ||
API_KEY: ${{ secrets.BASE_URL }} | ||
|
||
- name: STORE_FILE | ||
run: | | ||
echo STORE_FILE=$STORE_FILE > local.properties | ||
shell: bash | ||
env: | ||
API_KEY: ${{ secrets.KEY_PATH }} | ||
|
||
- name: KEY_PASSWORD | ||
run: | | ||
echo KEY_PASSWORD=$KEY_PASSWORD > local.properties | ||
shell: bash | ||
env: | ||
API_KEY: ${{ secrets.BASE_URL }} | ||
|
||
- name: KEY_ALIAS | ||
run: | | ||
echo KEY_ALIAS=$KEY_ALIAS > local.properties | ||
shell: bash | ||
env: | ||
API_KEY: ${{ secrets.BASE_URL }} | ||
|
||
- name: STORE_PASSWORD | ||
- name: Download Android keystore | ||
id: android_keystore | ||
uses: timheuer/[email protected] | ||
with: | ||
fileName: key.jks | ||
encodedString: ${{ secrets.STORE_FILE }} | ||
|
||
- name: Create key.properties | ||
run: | | ||
echo STORE_PASSWORD=$STORE_PASSWORD > local.properties | ||
shell: bash | ||
env: | ||
API_KEY: ${{ secrets.BASE_URL }} | ||
|
||
|
||
- name: Create properties file | ||
run: cat /home/runner/work/Don-t-Forget---Android/Don-t-Forget---Android/local.properties | ||
|
||
- name: Putting properties data | ||
env: | ||
DATA: ${{ secrets.LOCAL_PROPERTIES }} | ||
run: echo $DATA > /home/runner/work/Don-t-Forget---Android/Don-t-Forget---Android/local.properties | ||
|
||
echo "STORE_FILE=${{ steps.android_keystore.outputs.filePath }}" > android/key.properties | ||
echo "STORE_PASSWORD=${{ secrets.STORE_PASSOWRD }}" >> android/key.properties | ||
echo "KEY_PASSWORD=${{ secrets.KEY_PASSWORD }}" >> android/key.properties | ||
echo "KEY_ALIAS=${{ secrets.KEY_ALIAS }}" >> android/key.properties | ||
|
||
- name: Ktlint Check | ||
run: ./gradlew --no-daemon ktlintCheck --continue | ||
|
||
|
||
|
||
- name: Create file | ||
run: cat /home/runner/work/Don-t-Forget---Android/Don-t-Forget---Android/app/google-services.json | base64 | ||
|