Skip to content

Commit 31a977e

Browse files
authored
Update release.yml
1 parent 83c29d4 commit 31a977e

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,23 @@ jobs:
1919
distribution: 'temurin'
2020
java-version: '17'
2121

22+
- name: Decode and Save Keystore File
23+
run: |
24+
mkdir -p keystore
25+
echo "${{ secrets.RELEASE_KEYSTORE_BASE64 }}" | base64 --decode > keystore/release.keystore.jks
26+
2227
- name: Grant execute permission for gradlew
2328
run: chmod +x ./gradlew
2429

2530
- name: Create local.properties
2631
run: |
27-
echo "kakaoApiKey=${{ secrets.KAKAO_API_KEY }}" > local.properties
28-
echo "amplitudeApiKey=${{ secrets.AMPLITUDE_API_KEY }}" >> local.properties
29-
echo "keyAlias=${{ secrets.KEY_ALIAS }}" >> local.properties
30-
echo "keyPassword=${{ secrets.KEY_PASSWORD }}" >> local.properties
31-
echo "storePassword=${{ secrets.STORE_PASSWORD }}" >> local.properties
32-
echo "hmhDevBaseUrl=${{ secrets.HMH_DEV_BASE_URL }}" >> local.properties
33-
echo "hmhProdBaseUrl=${{ secrets.HMH_PROD_BASE_URL }}" >> local.properties
32+
echo "kakaoApiKey=${{ secrets.KAKAO_API_KEY }}" > ./app/local.properties
33+
echo "amplitudeApiKey=${{ secrets.AMPLITUDE_API_KEY }}" >> ./app/local.properties
34+
echo "keyAlias=${{ secrets.KEY_ALIAS }}" >> ./app/local.properties
35+
echo "keyPassword=${{ secrets.KEY_PASSWORD }}" >> ./app/local.properties
36+
echo "storePassword=${{ secrets.STORE_PASSWORD }}" >> ./app/local.properties
37+
echo "hmhDevBaseUrl=${{ secrets.HMH_DEV_BASE_URL }}" >> ./app/local.properties
38+
echo "hmhProdBaseUrl=${{ secrets.HMH_PROD_BASE_URL }}" >> ./app/local.properties
3439
3540
- name: Setup Firebase Service Account
3641
run: echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > ./app/google-services.json
@@ -48,8 +53,8 @@ jobs:
4853
run: |
4954
VERSION_INFO=$(./gradlew -q printVersionInfo)
5055
echo "$VERSION_INFO"
51-
VERSION_NAME=$(echo "$VERSION_INFO" | grep 'VERSION_NAME' | cut -d'=' -f2 | tr -d '\r')
52-
VERSION_CODE=$(echo "$VERSION_INFO" | grep 'VERSION_CODE' | cut -d'=' -f2 | tr -d '\r')
56+
VERSION_NAME=$(echo "$VERSION_INFO" | grep 'VERSION_NAME' | cut -d'=' -f2 | tr -d '\r' | tr -d '\n')
57+
VERSION_CODE=$(echo "$VERSION_INFO" | grep 'VERSION_CODE' | cut -d'=' -f2 | tr -d '\r' | tr -d '\n')
5358
echo "VERSION_NAME=\"$VERSION_NAME\"" >> $GITHUB_ENV
5459
echo "VERSION_CODE=$VERSION_CODE" >> $GITHUB_ENV
5560
@@ -91,4 +96,4 @@ jobs:
9196
🔖 *릴리즈 노트:*\n
9297
```${{ env.RELEASE_NOTES }}```\n
9398
📥 *다운로드 링크:* <${{ steps.firebase_upload.outputs.TESTING_URI }}|여기를 클릭>"
94-
}' ${{ secrets.SLACK_RELEASE_WEBHOOK_URL }}
99+
}' ${{ secrets.SLACK_RELEASE_WEBHOOK_URL }}

0 commit comments

Comments
 (0)