Skip to content

[Fix] GithubAction Gradle 버전을 찾지 못하는 문제 해결 #3

[Fix] GithubAction Gradle 버전을 찾지 못하는 문제 해결

[Fix] GithubAction Gradle 버전을 찾지 못하는 문제 해결 #3

Workflow file for this run

name: Deploy
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
# 기본 체크아웃
- name: Checkout
uses: actions/checkout@v3
# JDK 17 세팅
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
# Gradle 버전 설치 (Wrapper 없을 경우)
- name: Set up Gradle
uses: gradle/wrapper-validation-action@v2
with:
gradle-version: '8.8' # 필요한 Gradle 버전 설정
# 환경 변수 설정
- name: Set environment values
run: |
cd ./wabi/src/main/resources
touch ./env.properties
echo "SPRING_DATASOURCE_URL=${{ secrets.SPRING_DATASOURCE_URL }}" >> ./env.properties
echo "SPRING_DATASOURCE_USERNAME=${{ secrets.SPRING_DATASOURCE_USERNAME }}" >> ./env.properties
echo "SPRING_DATASOURCE_PASSWORD=${{ secrets.SPRING_DATASOURCE_PASSWORD }}" >> ./env.properties
echo "JWT_KEY=${{ secrets.JWT_KEY }}" >> ./env.properties
echo "JWT.EXPIRATION.HOURS=${{ secrets.JWT_EXPIRATION_HOURS }}" >> ./env.properties
echo "JWT.ISSUER=${{ secrets.JWT_ISSUER }}" >> ./env.properties
shell: bash
# Gradle build (Test 제외)
- name: Build with Gradle
run: ./wabi/gradlew clean build -x test # Gradle Wrapper로 빌드