-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd1ac29
commit 3413291
Showing
1 changed file
with
0 additions
and
39 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1 @@ | ||
name: techeer-market | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: # 브랜치 push 뿐만 아니라 수동 실행도 가능하게 해줌 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest # 깃허브 액션 스크립트가 작동될 OS 환경 지정 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 # 프로젝트 코드를 check out | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v2 # 깃허브 액션이 실행될 OS에 Java 설치 | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x ./gradlew # gradle wrapper를 실행할 수 있도록 권한 부여 | ||
shell: bash | ||
|
||
- name: Build with Gradle | ||
run: ./gradlew clean build # 프로젝트 빌드 | ||
shell: bash | ||
|
||
- name: Get current time | ||
uses: 1466587594/get-current-time@v2 # 빌드 완료 시간 가져오기 | ||
id: current-time | ||
with: | ||
format: YYYY-MM-DDTHH-mm-ss | ||
utcOffset: "+09:00" | ||
|
||
- name: Show Current Time | ||
run: echo "CurrentTime=${{steps.current-time.outputs.formattedTime}}" # 빌드 완료 시간 출력하기 | ||
shell: bash |