Skip to content

Commit

Permalink
chore: cd 파일 생성 코드 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
junjange committed Aug 19, 2024
1 parent b99304e commit 79810dd
Showing 1 changed file with 39 additions and 7 deletions.
46 changes: 39 additions & 7 deletions .github/workflows/android-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,49 @@ jobs:
distribution: 'corretto'
java-version: '17'

- name: Create Files
- name: Create local.properties
env:
RELEASE_KEYSTORE: ${{ secrets.RELEASE_KEYSTORE }}
KEYSTORE_PROPERTIES: ${{ secrets.KEYSTORE_PROPERTIES }}
LOCAL_PROPERTIES: ${{ secrets.LOCAL_PROPERTIES }}
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }}
run: |
echo "RELEASE_KEYSTORE" | base64 -d > release.keystore
echo "$KEYSTORE_PROPERTIES" > keystore.properties
echo "$LOCAL_PROPERTIES" > local.properties
echo "$GOOGLE_SERVICES_JSON" > google-services.json
- name: Create keystore.properties
env:
KEYSTORE_PROPERTIES: ${{ secrets.KEYSTORE_PROPERTIES }}
run: |
echo "$KEYSTORE_PROPERTIES" > keystore.properties
- name: Create keystore directory
run: mkdir -p /home/runner/work/2024-friendogly/2024-friendogly/android/app/keystore

- name: Putting data
env:
DATA: ${{ secrets.RELEASE_KEYSTORE }}
run: echo $DATA > base64 -d > /home/runner/work/2024-friendogly/2024-friendogly/android/app/keystore/friendogly.jks

- name: Create release-keystore
env:
RELEASE_KEYSTORE: ${{ secrets.RELEASE_KEYSTORE }}
run: |
touch ../android/app/keystore/friendogly.jks
echo RELEASE_KEYSTORE >> ../android/app/keystore/friendogly.jks
cat ../android/app/keystore/friendogly.jks
- name: Create google-services.json
env:
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }}
run: |
touch ../android/app/google-services.json
echo GOOGLE_SERVICES_JSON >> ../android/app/google-services.json
cat ../android/app/google-services.json
- name: Create file
run: cat /home/runner/work/2024-friendogly/2024-friendogly/android/app/google-services.json | base64

- name: Putting data
env:
DATA: ${{ secrets.GOOGLE_SERVICES_JSON }}
run: echo $DATA > /home/runner/work/2024-friendogly/2024-friendogly/android/app/google-services.json

- name: Build Release APK
run: |
Expand Down

0 comments on commit 79810dd

Please sign in to comment.