220901 GitHub Actions에서 properties 추가 하는 방법

Jongleee·2022년 9월 1일
1

TIL

목록 보기
42/576

GitHub Actions에서 properties 추가 하는 방법

   ## create application-dev.properties
   - name: make application.properties
     run: |
       cd ./src/main/resources
       touch ./application.properties
       echo "${{ secrets.PROPERTIES }}" > ./application.properties
     shell: bash

주의사항

  1. github repository에서 Setting - Secrets-Actions 으로 들어간 후 New repository secret

    이후 Value에 application 복사해서 붙여넣기

  2. src/main/resources 폴더가 없는 경우

    위 이미지와 같은 오류가 발생하므로 resources 폴더를 깃허브에 추가해주어야 함

0개의 댓글