Skip to content

Commit

Permalink
[FEAT] secret 값 받아와서 파일 만드는 로직 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Ji hwan Shin authored and Ji hwan Shin committed Apr 10, 2024
1 parent 57e7fc0 commit 85dbfd0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ jobs:
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}

- name: Create application.properties from secret
run: |
echo "${{ secrets.APPLICATION_SECRET_SPRING_DEV }}" > ./main/src/main/resources/application.properties
shell: bash

- name: Build and analyze (SpringBoot)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -57,6 +62,11 @@ jobs:
path: server/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('server/package-lock.json') }}

- name: Create .dev.env from secret
run: |
echo "${{ secrets.APPLICATION_SECRET_NESTJS_DEV }}" > ./server/.dev.env
shell: bash

- name: Build and analyze (NestJS)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 85dbfd0

Please sign in to comment.