[FIX] 유저 가입 일시 저장 및 가입 시 디스코드 알람 기능 구현 #7
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
# workflow 이름: CI-develop | |
name: CI-devleop | |
# trigger: dev 브랜치에 PR 발생할 때 | |
on: | |
pull_request: | |
branches: [ "dev" ] | |
# workflow의 세부 작업 단위 job 정의 | |
jobs: | |
build-develop: # job 이름: build-develop | |
runs-on: ubuntu-22.04 # VM의 OS 지정 (EC2와 동일 버전) | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'corretto' | |
java-version: '17' | |
- name: Create application.yml and application-prod.yml | |
run: | | |
mkdir src/main/resources | |
cd src/main/resources | |
echo "${{ secrets.APPLICATION }}" > ./application.yml | |
echo "${{ secrets.APPLICATION_PROD_DEVELOP }}" > ./application-prod.yml | |
- name: Create apple login key file | |
env: | |
API_KEY: ${{ secrets.APPSTORE_API_KEY_ID }} | |
run: | | |
mkdir -p src/main/resources/static/apple | |
echo "${{ secrets.APPLE_AUTH_KEY }}" > src/main/resources/static/apple/AuthKey_$API_KEY.p8 | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
shell: bash | |
- name: Build with Gradle | |
run: ./gradlew build -x test | |
shell: bash |