1010jobs :
1111 test :
1212 runs-on : ubuntu-latest
13-
1413 strategy :
1514 matrix :
1615 java-version : [8, 11, 17, 21, 24]
17-
18- steps :
19- - uses : actions/checkout@v4
20-
21- - name : Set up JDK ${{ matrix.java-version }}
22- uses : actions/setup-java@v4
23- with :
24- java-version : ${{ matrix.java-version }}
25- distribution : ' temurin'
26-
27- - name : Grant execute permission for gradlew
28- run : chmod +x gradlew
29-
30- - name : Cache Gradle packages
31- uses : actions/cache@v4
32- with :
33- path : |
34- ~/.gradle/caches
35- ~/.gradle/wrapper
36- key : ${{ runner.os }}-gradle-jdk${{ matrix.java-version }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
37- restore-keys : |
38- ${{ runner.os }}-gradle-jdk${{ matrix.java-version }}-
39- ${{ runner.os }}-gradle-
40-
41- - name : Run tests
42- run : ./gradlew test
43-
44- - name : Build with Gradle
45- run : ./gradlew build
46-
47- - name : Test JitPack publish
48- run : ./gradlew publishToMavenLocal
49-
50- - name : Upload build artifacts
51- uses : actions/upload-artifact@v4
52- if : matrix.java-version == 8
53- with :
54- name : jar-artifacts
55- path : |
56- */build/libs/*.jar
57- !*/build/libs/*-sources.jar
58- !*/build/libs/*-javadoc.jar
59-
60- jitpack-compatibility :
61- runs-on : ubuntu-latest
62- needs : test
63-
16+
6417 steps :
65- - uses : actions/checkout@v4
66-
67- - name : Set up JDK 8
68- uses : actions/setup-java@v4
69- with :
70- java-version : 8
71- distribution : ' temurin'
72-
73- - name : Cache Gradle packages
74- uses : actions/cache@v4
75- with :
76- path : |
77- ~/.gradle/caches
78- ~/.gradle/wrapper
79- key : ${{ runner.os }}-gradle-build-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
80- restore-keys : |
81- ${{ runner.os }}- gradle-
82-
83- - name : Test JitPack build simulation
84- run : |
85- chmod +x gradlew
86- ./gradlew clean
87- ./gradlew publishToMavenLocal
88- echo "JitPack compatibility verified"
18+ - uses : actions/checkout@v4
19+
20+ - name : Set up JDK ${{ matrix.java-version }}
21+ uses : actions/setup-java@v4
22+ with :
23+ java-version : ${{ matrix.java-version }}
24+ distribution : ' temurin'
25+
26+ - name : Grant execute permission for gradlew
27+ run : chmod +x gradlew
28+
29+ - name : Cache Gradle packages
30+ uses : actions/cache@v4
31+ with :
32+ path : |
33+ ~/.gradle/caches
34+ ~/. gradle/wrapper
35+ key : ${{ runner.os }}-gradle-jdk${{ matrix.java-version }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
36+ restore-keys : |
37+ ${{ runner.os }}-gradle-jdk${{ matrix.java-version }}-
38+ ${{ runner.os }}-gradle-
39+
40+ - name : Run tests on JDK ${{ matrix.java-version }}
41+ run : ./gradlew test
8942
9043 release :
9144 runs-on : ubuntu-latest
92- needs : [test, jitpack-compatibility ]
45+ needs : [test]
9346 if : startsWith(github.ref, 'refs/tags/v')
94-
47+
9548 steps :
96- - name : Check deploy token
97- run : |
98- if [ -z "${{ secrets.DEPLOY_TOKEN }}" ]; then
99- echo "DEPLOY_TOKEN is not set. Skipping release."
100- exit 1
101- fi
102- echo "DEPLOY_TOKEN is available. Proceeding with release."
10349 - name : Checkout repository
10450 uses : actions/checkout@v4
105- with :
106- fetch-depth : 0
10751
108- - name : Set up JDK 8
52+ - name : Set up JDK 8 (for Java 8-24 compatibility)
10953 uses : actions/setup-java@v4
11054 with :
11155 java-version : ' 8'
@@ -142,29 +86,29 @@ jobs:
14286 name : " Release ${{ steps.version.outputs.tag }}"
14387 body : |
14488 🚀 릴리스: ${{ steps.version.outputs.tag }}
145-
89+
14690 ## JitPack 사용법
147-
91+
14892 ### Gradle
14993 ```gradle
15094 repositories {
151- maven { url 'https://jitpack.io' }
95+ maven { url '[ https://jitpack.io](https://jitpack.io) ' }
15296 }
153-
97+
15498 dependencies {
15599 implementation 'com.github.hj4645:commit-chronicle:${{ steps.version.outputs.version }}'
156100 }
157101 ```
158-
102+
159103 ### Maven
160104 ```xml
161105 <repositories>
162106 <repository>
163107 <id>jitpack.io</id>
164- <url>https://jitpack.io</url>
108+ <url>[ https://jitpack.io](https://jitpack.io) </url>
165109 </repository>
166110 </repositories>
167-
111+
168112 <dependencies>
169113 <dependency>
170114 <groupId>com.github.hj4645</groupId>
@@ -173,18 +117,7 @@ jobs:
173117 </dependency>
174118 </dependencies>
175119 ```
176-
177- ## CLI 사용법
178- ```bash
179- # alias 설정
180- alias cch="java -jar ~/.gradle/caches/modules-2/files-2.1/com.github.hj4645/commit-chronicle/${{ steps.version.outputs.version }}/*/commitchronicle-${{ steps.version.outputs.version }}.jar"
181-
182- # 사용
183- cch summarize
184- cch pr
185- cch settings
186- ```
187120 draft : false
188121 prerelease : false
189122 env :
190- GITHUB_TOKEN : ${{ secrets.DEPLOY_TOKEN }}
123+ GITHUB_TOKEN : ${{ secrets.DEPLOY_TOKEN }}
0 commit comments