Skip to content

Commit 119bc5f

Browse files
committed
fix: build오류 수정
1 parent fc8ce7e commit 119bc5f

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

.github/workflows/CI-dev.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,33 @@ jobs:
3939
restore-keys: |
4040
${{ runner.os }}-gradle-
4141
42+
# 설정 파일 생성
43+
- run: |
44+
mkdir ./src/main/resources
45+
cd ./src/main/resources
46+
touch ./application.yml
47+
echo "${{env.APPLICATION}}" > ./application.yml
48+
touch ./firebase-key.json
49+
echo "${{env.GOOGLE_APPLICATION_CREDENTIALS}}" | base64 --decode > ./firebase-key.json
50+
touch ./apple-key.p8
51+
echo "${{env.APPLE_KEY}}" > ./apple-key.p8
52+
53+
# 설정 파일을 작업공간에 저장
54+
- uses: actions/upload-artifact@v2
55+
with:
56+
name: application.yml
57+
path: ./src/main/resources/application.yml
58+
59+
- uses: actions/upload-artifact@v2
60+
with:
61+
name: firebase-key.json
62+
path: ./src/main/resources/firebase-key.json
63+
64+
- uses: actions/upload-artifact@v2
65+
with:
66+
name: apple-key.p8
67+
path: ./src/main/resources/apple-key.p8
68+
4269
# gradlew 권한 설정
4370
- name: Grant execute permission for gradlew
4471
run: chmod +x gradlew
@@ -55,3 +82,4 @@ jobs:
5582
run: |
5683
rm -f ~/.gradle/caches/modules-2/modules-2.lock
5784
rm -f ~/.gradle/caches/modules-2/gc.properties
85+

.github/workflows/CI-prod.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,33 @@ jobs:
3939
restore-keys: |
4040
${{ runner.os }}-gradle-
4141
42+
# 설정 파일 생성
43+
- run: |
44+
mkdir ./src/main/resources
45+
cd ./src/main/resources
46+
touch ./application.yml
47+
echo "${{env.APPLICATION}}" > ./application.yml
48+
touch ./firebase-key.json
49+
echo "${{env.GOOGLE_APPLICATION_CREDENTIALS}}" | base64 --decode > ./firebase-key.json
50+
touch ./apple-key.p8
51+
echo "${{env.APPLE_KEY}}" > ./apple-key.p8
52+
53+
# 설정 파일을 작업공간에 저장
54+
- uses: actions/upload-artifact@v2
55+
with:
56+
name: application.yml
57+
path: ./src/main/resources/application.yml
58+
59+
- uses: actions/upload-artifact@v2
60+
with:
61+
name: firebase-key.json
62+
path: ./src/main/resources/firebase-key.json
63+
64+
- uses: actions/upload-artifact@v2
65+
with:
66+
name: apple-key.p8
67+
path: ./src/main/resources/apple-key.p8
68+
4269
# gradlew 권한 설정
4370
- name: Grant execute permission for gradlew
4471
run: chmod +x gradlew

0 commit comments

Comments
 (0)