Skip to content

Commit

Permalink
fix: Secret 환경 변수 설정 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JeongUijeong authored Oct 26, 2023
1 parent 7089719 commit b7f2fea
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,16 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Set secret env
env:
kakao-api.api-url: ${{ secrets.MY_API_URL }}
kakao-api.api-key: ${{ secrets.MY_API_KEY }}
run: echo $kakao-api.api-url | base64 --decode > src/main/resources/application-secret.yaml &&
echo $kakao-api.api-key | base64 --decode > src/test/resources/application-secret.yaml

- name: Build with Gradle
uses: gradle/[email protected]
with:
kakao-api.api-url: ${{ secrets.MY_API_URL }}
kakao-api.api-key: ${{ secrets.MY_API_KEY }}
arguments: build
cache-read-only: ${{ github.ref != 'ref/heads/main' && github.ref != 'ref/heads/develop' }}

Expand Down

0 comments on commit b7f2fea

Please sign in to comment.