Skip to content

Commit 7dca15c

Browse files
committed
Update: release.yml
1 parent fb14ad1 commit 7dca15c

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
# .github/workflows/release.yml
21
name: Build and Release Steam Game Recommend
32

43
on:
54
push:
65
tags:
7-
- 'v*' # v1.0.0, v1.1.0 등의 태그가 푸시될 때 실행
6+
- 'v*' # Triggers when tags like v1.0.0, v1.1.0 are pushed
87

98
jobs:
109
build-and-release:
11-
runs-on: windows-latest # Windows에서 테스트했으므로 Windows 환경 사용
10+
runs-on: windows-latest # Using Windows environment as it was tested on Windows
11+
permissions:
12+
contents: write
1213

1314
steps:
1415
- name: Checkout repository
@@ -27,41 +28,43 @@ jobs:
2728
cache: 'npm'
2829
cache-dependency-path: electron/package-lock.json
2930

30-
# Spring Boot JAR 파일 빌드
31+
# Build Spring Boot JAR file
3132
- name: Build Spring Boot JAR
3233
run: |
3334
./gradlew clean bootJar
3435
shell: cmd
3536

36-
# JAR 파일을 Electron resources 폴더로 복사
37+
# Copy JAR file to Electron resources folder
3738
- name: Copy JAR to Electron resources
3839
run: |
3940
if not exist "electron\resources" mkdir "electron\resources"
4041
copy "build\libs\recommend-0.0.1-SNAPSHOT.jar" "electron\resources\"
4142
shell: cmd
4243

43-
# Electron 의존성 설치
44+
# Install Electron dependencies
4445
- name: Install Electron dependencies
4546
run: npm install
4647
working-directory: electron
4748

48-
# Electron 앱 빌드
49+
# Build Electron app
4950
- name: Build Electron App
5051
run: npm run dist
5152
working-directory: electron
5253

53-
# 빌드 결과물 확인
54+
# Check build artifacts
5455
- name: List build artifacts
5556
run: |
56-
echo "=== JAR 파일 ==="
57+
echo "=== JAR Files ==="
5758
dir build\libs\
58-
echo "=== Electron 빌드 결과물 ==="
59+
echo "=== Electron Build Results ==="
5960
dir electron\dist\
6061
shell: cmd
6162

62-
# GitHub Release 생성
63+
# Create GitHub Release
6364
- name: Create Release
6465
uses: softprops/action-gh-release@v1
66+
permissions:
67+
contents: write
6568
with:
6669
files: |
6770
electron/dist/*.exe
@@ -129,7 +132,7 @@ jobs:
129132
env:
130133
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
131134

132-
# 빌드 실패 시 로그 출력
135+
# Upload build logs on failure
133136
- name: Upload build logs on failure
134137
if: failure()
135138
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)