Skip to content

Commit dce0c9f

Browse files
committed
Update build.yml
1 parent 4c7d6fe commit dce0c9f

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,22 @@ jobs:
1717
- uses: actions/checkout@v4
1818
- name: Change wrapper permissions
1919
run: chmod +x ./gradlew
20-
- uses: actions/setup-java@v4
20+
- name: Java
21+
uses: actions/setup-java@v4
2122
with:
2223
distribution: 'temurin'
2324
java-version: 21
2425
# https://github.com/gradle/actions for documentation
2526
- name: Validate Gradle Wrapper
2627
uses: gradle/actions/wrapper-validation@v4
27-
- name: Build Project
28+
- name: Build Project with Gradle
2829
run: ./gradlew build
29-
30+
- name: Archive Artifacts to Action.
31+
uses: actions/upload-artifact@v4
32+
if: success()
33+
with:
34+
name: DCIFileReader
35+
path: build/libs/DCIFileReader-*.jar
3036
# https://cli.github.com/manual/gh_release_create
3137
- name: Create release
3238
run: gh release create draft build/libs/DCIFileReader-*.jar --draft --latest --notes "https://github.com/${{github.repository}}/commit/${{github.sha}} https://github.com/${{github.repository}}/commit/${{github.sha}}/checks/${{github.run_id}}"

0 commit comments

Comments
 (0)