Skip to content

[RELEASE] 1.0.0 1차 스프린트 개발사항 1차 배포 #341

[RELEASE] 1.0.0 1차 스프린트 개발사항 1차 배포

[RELEASE] 1.0.0 1차 스프린트 개발사항 1차 배포 #341

Workflow file for this run

# workflow 이름: CI-release
name: CI-release
# trigger: main 브랜치에 PR 발생할 때
on:
pull_request:
branches: [ "main" ]
# workflow의 세부 작업 단위 job 정의
jobs:
build: # job 이름: build
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 }}" > ./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