[ENV] Code deploy 설정 파일 수정 #89
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tattour-Server-Prod CI | |
on: | |
pull_request: | |
branches: [ "main", "production" ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
- name: make application.properties | |
run: | | |
#mkdir ./server/src/main/resources | |
cd ./server/src/main/resources | |
touch ./application.yaml | |
echo "${{ secrets.TATTOUR_PROD_APPLICATION }}" >> ./application.yaml | |
cat ./application.yaml | |
shell: bash | |
- name: Grant execute permission for gradlew | |
run: chmod +x ./server/gradlew | |
- name: Build with Gradle | |
run: | | |
cd ./server | |
./gradlew build -x test |